'Syntax Highlighting not working with Prismjs

I am running ghost as a blog software and I have a blog post that has markdown code snippets that I would like to have syntax highlighted.

I have followed the instructions to include the necessary header and footer tags and the specific tag for the language Im trying to highlight but still no syntax highlighting is taking place.

Here is a link to the page Im trying to get syntax highlight working on:

https://screaming-cactus.com/learning-to-love-result/

Any thoughts?



Solution 1:[1]

Not sure if the original poster is still in need of this, but if anyone is looking to syntax highlight their code blocks in Ghost and stumble upon this page, I've created a tutorial that shows you how: https://ghost.org/tutorials/code-snippets-in-ghost/

Solution 2:[2]

Try adding in your __init__.py something like

import foo

function_name = foo.function_name

Then, from other package you can do

from foo import function_name

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Gonzalo Odiard