View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0024810||mantisbt||markdown||public||2018-09-26 09:11||2021-04-22 04:32|
|Summary||0024810: Markdown links/code always show HTML entities for Ampersand and Less-than sign|
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||assigned||dregad||Double quotes " and lesser than sign < are shown as HTML entity within Markdown code blocks|
|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
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.