borkdude / quickblog

Light-weight static blog engine for Clojure and babashka
https://blog.michielborkent.nl/
MIT License
165 stars 28 forks source link

feat: add "language-xxx" to <pre><code> elements for prism syntax highlighting. #96

Closed BerkeleyTrue closed 6 months ago

BerkeleyTrue commented 6 months ago
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.

Prism requires "laguage-xxx" class in both code and pre blocks.

I've already opened an issue in https://github.com/yogthos/markdown-clj/issues/199 to add an option to add classes to pre tags.

borkdude commented 6 months ago

ok, ping me whenever the upstream issue is fixed