PrismJS
Chloe

Chloe @cguttweb

About: Web developer looking to develop my skills further particularly around JavaScript and Vue/Nuxt

Location:
UK
Joined:
May 6, 2019

PrismJS

Publish Date: May 8 '20
0 1

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']
Enter fullscreen mode Exit fullscreen mode

and imported a theme into my main.js file:

import "prismjs/themes/prism-dark.css"
Enter fullscreen mode Exit fullscreen mode

which works fine when I use gridsome develop locally but once psoted this highlighting disappears. Am I missing a step somewhere?

Thanks in advance

Comments 1 total

  • Dmitry Shatokhin
    Dmitry ShatokhinMay 8, 2020

    Hi
    You can contact me and we will try to solve this problem ;)

Add comment