Project

General

Profile

Actions

Defect #22046

closed

Markdown XML code blocks not properly supported

Added by T H about 8 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Markdown code blocks are blocks of text surrounded by three backticks (```).

For example:

```xml
<example>test</example>
```

This should result in the following HTML:

<pre><code class="xml">
<example>test</example>
</code>< /pre>

(I can't seem to get the closing pre-tag to show up properly, either!)

However, what is actually output is:

<pre>
<example>test</example>
</pre>

The result is that syntax highlighting does not work. If it is too much trouble to include the language (the class attribute based on the language after the three backticks), it would be sufficient for me if the code was surrounded by

<code>…</code>
in addition to the pre-tags already in place.

Actions

Also available in: Atom PDF