Skip to content

Commit

Permalink
doc: Pandoc is compatible with highlight.js after all.
Browse files Browse the repository at this point in the history
Testing with highlight.js 11.9.0 reveals that it can handle the class
attribute being on the pre element and not having a "language-" prefix.
  • Loading branch information
averms committed Apr 9, 2024
1 parent 3bee04d commit 8bffd88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ looks like this:

<pre class="lua"><code>print 'Hello World!'</code></pre>

The above is not what the [W3C recommends][spec], nor is it compatible with
prism.js and highlight.js. This filter makes sure pandoc outputs the
recommended syntax:
The above is not what the [W3C recommends][spec], nor is it compatible with prism.js.
This filter makes sure pandoc outputs the recommended syntax:

<pre><code class="language-lua">print 'Hello World!'</code></pre>

Expand Down

0 comments on commit 8bffd88

Please sign in to comment.