Prism highlighting for gitbook
npm install gitbook-plugin-prismGitbook Plugin for Prism
==============

##### Before
##### After
Add the plugin to your book.json, and disable default GitBook code highlighting:
``json`
{
"plugins": ["prism", "-highlight"]
}
`json`
"pluginsConfig": {
"prism": {
"css": [
"prismjs/themes/prism-solarizedlight.css"
]
}
}
`json`
"pluginsConfig": {
"prism": {
"lang": {
"flow": "typescript"
}
}
}
`json`
"pluginsConfig": {
"prism": {
"ignore": [
"mermaid",
"eval-js"
]
}
}
https://github.com/PrismJS/prism
#### Okaidia prismjs/themes/prism-okaidia.css
!Okaidia
#### Solarized Light prismjs/themes/prism-solarizedlight.css
!Solarized Light
#### Tomorrow prismjs/themes/prism-tomorrow.css
!Tomorrow
#### Dark prismjs/themes/prism-dark.css
!Dark
#### Coy prismjs/themes/prism-coy.css
!Coy
https://github.com/atelierbram/syntax-highlighting
#### Base16 Ocean Dark syntax-highlighting/assets/css/prism/prism-base16-ocean.dark.css
!Base16 Ocean Dark
#### Google Light syntax-highlighting/assets/css/prism/prism-base16-google.light.css
!Google Light
#### Xonokai syntax-highlighting/assets/css/prism/prism-xonokai.css`
!Google Light
Originally based on https://github.com/spricity/google_code_prettify.
Apache 2