You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to make PrismJS syntax highlighting work, it requires all code blocks to be formatted like so:
<pre>
<code>
// the code
</code>
</pre>
But snarkdown only uses <pre> without <code>.
My request is that snarkdown uses <pre><code> by default OR via an option.
From the PrismJS docs:
Encourages good author practices. Other highlighters encourage or even force you to use elements that are semantically wrong, like <pre> (on its own) or <script>. Prism forces you to use the correct element for marking up code: <code>. On its own for inline code, or inside a <pre> for blocks of code. In addition, the language is defined through the way recommended in the HTML5 draft: through a language-xxxx class.
In order to make PrismJS syntax highlighting work, it requires all code blocks to be formatted like so:
But snarkdown only uses
<pre>
without<code>
.My request is that snarkdown uses
<pre><code>
by default OR via an option.From the PrismJS docs:
https://prismjs.com/#features-full
The text was updated successfully, but these errors were encountered: