View Issue Details

IDProjectCategoryView StatusLast Update
0024810mantisbtmarkdownpublic2022-05-10 09:19
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 
related to 0022315 assignedjoel Markdown converts " to " within code blocks and inline code 
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.

sean.gordon

sean.gordon

2021-08-04 08:20

reporter   ~0065729

This issue also affects me, we use mantis for dev work and code is unreadable

mcamou_ax

mcamou_ax

2021-09-30 14:01

reporter   ~0065876

Any news on this issue? It's been open forever and is really affecting our use of MantisHub

keessonnema

keessonnema

2021-10-01 02:40

reporter   ~0065877

This would indeed still make our lives a little easier if it was fixed.
We're unable to use markdown now.

c_schmitz

c_schmitz

2021-10-01 02:48

reporter   ~0065878

Last edited: 2021-10-01 02:49

Yes, I had to switch off the Markdown setting. It is a shame and quite an obstruction.
@atrol @dregad What would it take to fix this for good?

Dave_59

Dave_59

2022-04-01 03:06

reporter   ~0066401

Any news on this? It's really sad that a bug tracking system can't be used to display formatted code.

printf(&quot;hello world&quot;);
c_schmitz

c_schmitz

2022-04-19 11:12

reporter   ~0066450

...

dregad

dregad

2022-04-19 11:22

developer   ~0066452

What would it take to fix this for good?

More free time for me to spend on Mantis... ;-)

c_schmitz

c_schmitz

2022-04-20 11:41

reporter   ~0066459

Last edited: 2022-04-20 11:42

I meant more like paid work. Obviously, your free time is limited and I totally understand that.
So, please let me know how we can get this sorted - feel free to contact me directly by email.

c_schmitz

c_schmitz

2022-04-27 07:22

reporter   ~0066501

Any feedback?

c_schmitz

c_schmitz

2022-05-10 09:09

reporter   ~0066551

Last edited: 2022-05-10 09:10

0022315 is also related to this

dregad

dregad

2022-05-10 09:19

developer   ~0066552

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.