Markdown syntax and showing HTML tags

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
c_schmitz
Posts: 2
Joined: 26 Sep 2018, 10:44

Markdown syntax and showing HTML tags

Post 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.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Markdown syntax and showing HTML tags

Post 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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Markdown syntax and showing HTML tags

Post 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
Please use Search before posting and read the Manual
Post Reply