I've added PrismJS as a plugin to my Gridsome blog for code formatting (as like most I write my posts in markdown) when I run this locally it works fine, but on the live published posts it doesn't. Anyone with some experience with this that might be able to shed some light?
I've added it as a plugin to gridsome.config.js
under transformers plugins:
plugins: ['@gridsome/remark-prismjs']
and imported a theme into my main.js file:
import "prismjs/themes/prism-dark.css"
which works fine when I use gridsome develop
locally but once psoted this highlighting disappears. Am I missing a step somewhere?
Thanks in advance
Top comments (1)
Hi
You can contact me and we will try to solve this problem ;)