Page 1 of 1

Markdown syntax and showing HTML tags

Posted: 26 Sep 2018, 10:56
by c_schmitz
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.

Re: Markdown syntax and showing HTML tags

Posted: 26 Sep 2018, 11:52
by cas
This is not avaiable out of the box, there is a plugin available, check the list available here:
https://github.com/mantisbt-plugins

Re: Markdown syntax and showing HTML tags

Posted: 26 Sep 2018, 15:46
by atrol
@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