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
{{ message }}
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
We need to decide what to recommend to folks that need syntax highlight in code blocks. At the moment, I can think of three solutions:
The simplest solution is to use a browser plugin such as https://prismjs.com/. This is probably the best one as well.
We can also set up NodeJS and run our code to prismjs on the server. We need to create some examples showing how to integrate with NodeJS. It's pretty easy using elixir-nodejs.
Use an Elixir package like Makeup. This package can be used easily through a view helper (example). Or we can look into the markdown to HTML renderer and try to some plugin/patch to run some code blocks through Makeup. Still, the issue with this solution is that at the moment, only try languages are supported.