View Issue Details

IDProjectCategoryView StatusLast Update
0024810mantisbtmarkdownpublic2021-04-22 04:32
Reporterc_schmitz Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status confirmedResolutionopen 
Product Version2.17.1 
Summary0024810: Markdown links/code always show HTML entities for Ampersand and Less-than sign
Description

When activating Markdown in the Formatterplugin
it is not possible anymore to set links:

http://www.example.com?test=test&test3=4

TagsNo tags attached.

Relationships

related to 0024240 closeddregad XML in Markdown Code ist not rendered correct 
related to 0024628 assigneddregad Double quotes " and lesser than sign < are shown as HTML entity within Markdown code blocks 
has duplicate 0025405 closeddregad Links on summary, notes, and Details converted to other chars 
has duplicate 0026616 closedatrol URLs are translated to HTML when Markdown is enabled 

Activities

c_schmitz

c_schmitz

2018-09-26 09:13

reporter   ~0060697

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&amp;test3=4

which should be the correct way according to Markdown specs.

c_schmitz

c_schmitz

2019-05-23 04:51

reporter   ~0062117

Is there any chance of getting this fixed in the foreseeable future?

dregad

dregad

2019-05-28 04:30

developer   ~0062148

@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.

nenadalm

nenadalm

2020-08-17 05:17

reporter   ~0064266

there is alternative markdown plugin now: https://github.com/Imatic-IT/imatic-mantis-formatting

dregad

dregad

2020-08-17 06:04

developer   ~0064267

Last edited: 2020-08-18 07:46

@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.

mcamou_ax

mcamou_ax

2021-04-22 04:30

reporter   ~0065419

Last edited: 2021-04-22 04:32

I have a related issue: Markdown code blocks show HTML entities instead of the characters. For example:

This should be a less-than sign: &lt;
And a double quote: &quot;

As you can see, instead of displaying the characters it shows the HTML entity, which makes code blocks mostly unusable.