gaearon / gitbook-plugin-prism

Gitbook plugin for Prism highlighting
Apache License 2.0
88 stars 26 forks source link

How to use Google Light? #13

Closed kiwenlau closed 7 years ago

kiwenlau commented 7 years ago

I want to use Google Light

{
  "plugins": ["prism", "-highlight"]
}
"pluginsConfig": {  
  "prism": {
    "css": [
      "syntax-highlighting/assets/css/prism/prism-base16-google.light.css"
    ]
  }
}

But I get the error:

Error: Cannot find module 'syntax-highlighting/assets/css/prism/prism-base16-google.light.css'
robmcguinness commented 7 years ago

Did you npm i atelierbram/syntax-highlighting -D?

kiwenlau commented 7 years ago

I installed atelierbram/syntax-highlighting from GitHub and it works, thank you!

npm install https://github.com/atelierbram/syntax-highlighting/tarball/master