asciidoctor / asciidoctor-firefox-addon

:wolf: An add-on for Mozilla Firefox that converts AsciiDoc files to HTML directly in the browser using Asciidoctor.js.
https://addons.mozilla.org/en-US/firefox/addon/asciidoctorjs-live-preview/
MIT License
32 stars 9 forks source link

Sintax highlighting doesn’t fully work #49

Closed ghost closed 7 years ago

ghost commented 8 years ago

I set source-highlighter=highlightjs in the options. I get

<pre class="highlightjs highlight"><code class="language-xml" data-lang="xml">&lt;entry&gt;
  &lt;address&gt;&lt;/address&gt;
  &lt;name&gt;&lt;/name&gt;
&lt;/entry&gt;</code></pre>

So it seems that it only escapes the lt/gt, but nothing more (I don’t get any coloring)

ggrossetie commented 8 years ago

Thanks for your report @andya9 I will have a look. Are you using the latest release 0.5.0 ?

ghost commented 8 years ago

No, I’m still on 0.4. But it seems its a problem with asciidoctor itself.

EDIT: see here. It’s similar, but not the same: when generating with asciidoctor, only asciidoc syntax doesn’t work. Here everything.

ggrossetie commented 7 years ago

I guess this is fixed now... closing! Feel free to reopen this issue.