Using Prism for syntax highlighting

Up until today Neuron used Pandoc’s skylighting to do syntax highlighting statically, however skylighting supports very limited number of languages 1 .

To solve that, I decided to just switch to Prism to let the client-side do all syntax highlighting.

Incidentally this change now allows the user to swap out their syntax hilighting library by adding it to their head.html.

Documentation: https://neuron.zettel.page/syntax-highlighting

Breaking change?: If you use head.html, yes, you must add Prism JS and CSS manually; as neuron only adds the CSS classes to the code blocks.

Footnotes
1.
And Prism’s language support is actively growing, such as getting Idris support very recently.
#micro/neuron