View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0024810 | mantisbt | markdown | public | 2018-09-26 09:11 | 2024-04-22 10:10 |
Reporter | c_schmitz | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2.17.1 | ||||
Target Version | 2.27.0 | Fixed in Version | 2.27.0 | ||
Summary | 0024810: Markdown links/code always show HTML entities for Ampersand and Less-than sign | ||||
Description | When activating Markdown in the Formatterplugin | ||||
Tags | No tags attached. | ||||
related to | 0024240 | closed | dregad | XML in Markdown Code ist not rendered correct |
related to | 0024628 | resolved | dregad | Double quotes " and lesser than sign < are shown as HTML entity within Markdown code blocks |
related to | 0022315 | resolved | dregad | Markdown converts " to " within code blocks and inline code |
has duplicate | 0025405 | closed | dregad | Links on summary, notes, and Details converted to other chars |
has duplicate | 0026616 | closed | atrol | URLs are translated to HTML when Markdown is enabled |
As you can see the link contains & amp ; instead if the &. Same if I replace the ampersand by the related HTML entity http://www.example.com?test=test&test3=4 which should be the correct way according to Markdown specs. |
|
Is there any chance of getting this fixed in the foreseeable future? |
|
@c_schmitz this is quite complicated and I unfortunately do not have the enough spare time to spend on this. You can have a look if the problem is addressed by work-in-progress PR https://github.com/mantisbt/mantisbt/pull/1332 but I'm not sure it is because IIRC I was stuck with fixing URLs when I stopped working on that. |
|
there is alternative markdown plugin now: https://github.com/Imatic-IT/imatic-mantis-formatting |
|
@nenadalm, thanks for proposing a plugin. It relies on the PHP League's CommonMark library, which I actually considered switching to as an alternative to Parsedown, but unfortunately it requires PHP 7.2.5 and MantisBT still has a minimum of 5.5.0 (note that is planned to change, see 0025956) so we can't use it at the moment. You should therefore advertise that the plugin has higher requirements than Core MantisBT. |
|
I have a related issue: Markdown code blocks show HTML entities instead of the characters. For example:
As you can see, instead of displaying the characters it shows the HTML entity, which makes code blocks mostly unusable. |
|
This issue also affects me, we use mantis for dev work and code is unreadable |
|
Any news on this issue? It's been open forever and is really affecting our use of MantisHub |
|
This would indeed still make our lives a little easier if it was fixed. |
|
Yes, I had to switch off the Markdown setting. It is a shame and quite an obstruction. |
|
Any news on this? It's really sad that a bug tracking system can't be used to display formatted code. |
|
... |
|
More free time for me to spend on Mantis... ;-) |
|
I meant more like paid work. Obviously, your free time is limited and I totally understand that. |
|
Any feedback? |
|
0022315 is also related to this |
|
Hello Carsten, sorry for the silence. I have a few loose ends I need to tie, and I'm planning to start looking at this next. I'll get back to you. |
|
As with @c_schmitz I'd also be willing to pay to help get this one fixed. There's a PHP developer I know that does some contract work for me, he may be able/interested if the "how" could be described... |
|
Great, that this is finally resolved. I hope a new release is coming soon ;) |
|
MantisBT: master 3aec6e68 2024-03-31 23:15 grummbeer Committer: dregad Details Diff |
Clean up markdown processing - Process input via Markdownparser and return the result, no further text processing. - During parsing, catch all <code> blocks and replace them with a hash value. - After the markup is returned from Parsedown, apply mentions and links - Restore the untouched <code> Blocks back in place. Fixes 0034040, PR https://github.com/mantisbt/mantisbt/pull/1976 Also fixes 0022315, 0022320, 0024241, 0024628, 0024810, 0022231, 0023738 Signed-off-by: Damien Regad <dregad@mantisbt.org> |
Affected Issues 0022231, 0022315, 0022320, 0023738, 0024241, 0024628, 0024810, 0034040, 0034393 |
|
mod - plugins/MantisCoreFormatting/MantisCoreFormatting.php | Diff File | ||
mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php | Diff File |