Markdown syntax and showing HTML tags

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
c_schmitz
Posts: 1
Joined: Sep 26, 2018 5:44 am

Markdown syntax and showing HTML tags

Post by c_schmitz » Sep 26, 2018 5:56 am

Hello,

In a ticket I want to use the followin markdown:


Some text
```
<versionsource type="rest" url="https://some.url.com" />
```

Once saved Mantis shows it like this:

&lt;versionsource type=&quot;rest&quot; url=&quot;https://some.domain.com&quot; />

(Screenshot at https://screenshots.firefox.com/CRuyRtY ... survey.org )

Any idea how to fix this? Or how to show (not use) HTML inside the markdown code tag?
I tried to replace < with &lt; but no avail.

Thank you for reading this.

cas
Posts: 528
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Markdown syntax and showing HTML tags

Post by cas » Sep 26, 2018 6:52 am

This is not avaiable out of the box, there is a plugin available, check the list available here:
https://github.com/mantisbt-plugins

atrol
Site Admin
Posts: 7630
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Markdown syntax and showing HTML tags

Post by atrol » Sep 26, 2018 10:46 am

@c_schmitz,this is one of some more bugs in Markdown introduced in 2.12.1 after fixing a Markdown CSS issue.
There is a WIP PR to fix it https://github.com/mantisbt/mantisbt/pull/1332
Unfortunately we are also waiting for changes in underlying Parsedown library to be able to fix it in a simple and clean way.

For other users: c_schmitz opened a report for it https://www.mantisbt.org/bugs/view.php?id=24810
Please use Search before posting and read the Manual

Post Reply