Markdown XML code blocks not properly supported
Markdown code blocks are blocks of text surrounded by three backticks (
```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.
#1 Updated by T H almost 7 years ago
This seems to work in general but not for XML. When I tried my example in Ruby, it did work. It seems to be related to the XML that I would like to display as “code”. Somehow, the XML-tags are passed to the browser and are being interpreted, i.e. swallowed, instead of being rendered.
#6 Updated by Marius BALTEANU almost 4 years ago
- Status changed from Needs feedback to Closed
- Resolution set to Invalid
T H wrote:
The issue is with the redmine_highlightjs plugin. I disabled the plugin and got a correct rendering of the xml content after clearing all old cache data. I guess this can be closed then. Sorry for the troubles.
Thanks for the feedback.