Use line-highlight PrismJS plugin in Ghost

In case someone is interested knowing how to do this, i wrote a blog post about it. Basically, you need to put your code you want to highlight between <pre><code></code></pre>and calling the class of line-highlight in a HTML block.

https://ghostportal.co/line-highlight/

PS: huge thanks to @giacomosilli since it was you the one asking for this, which motivated me to look for a solution.

1 Like