felipelincoln / branchpage

A blogging platform integrated with GitHub.
https://www.branchpage.com
MIT License
49 stars 5 forks source link

code highlight on inline and no language #54

Closed felipelincoln closed 3 years ago

felipelincoln commented 3 years ago

inline code receive a inline class from EarmarkParser and code with no languages receives no class.

<code class="inline">EarmarkParser</code>

<pre>
  <code>
    EarmarkParser
  </code>
</pre>

In order to PrismJs to work, the inline class must have a language-none class on the code tag, and the block code must have this class in the pre tag.