dominch / redmine_highlightjs

A redmine plugin to highlight code blocks much better than coderay!
Other
22 stars 10 forks source link

highlightjs not working with xml output #21

Open ilpssun opened 8 years ago

ilpssun commented 8 years ago

I can’t seem to get the plugin to work with markdown as my parser. Markdown should allow fenced code blocks like github does (three backticks, optionally followed by the language). However, this does not work in Redmine apparently. How do I use redmine_highlightjs with markdown?

ilpssun commented 8 years ago

It seems that my issue is only apparent when I try to highlight XML. It works for Ruby code but not for XML snippets, so I adjusted the title of the issue.

anton-sergeev commented 8 years ago

I have the same issue. Here my xml block:

<pre><code class="xml">
<stream pid="0x91" type="0x4" language="bul" />
</code></pre>

Result in html:

<pre style="display: block;">
  <code class="xml syntaxhl hljs">
    <stream pid="0x91" type="0x4" language="bul"></stream>
  </code>
</pre>

Browser show block only without any code inside.

ilpssun commented 5 years ago

Analysed as being a plugin-specific bug (falsely reported as Bug 22046 in the redmine core tracker.