gitbook plugin [updated pkgs] https://github.com/windhamdavid/gitbook-plugin-prism-dw
Rob McGuinness 8436cd8f1a Gitbook prism plugin upgrades | 8 years ago | |
---|---|---|
.gitignore | 9 years ago | |
LICENSE | 10 years ago | |
README.md | 8 years ago | |
index.js | 8 years ago | |
package.json | 8 years ago |
Before |
After |
Add the plugin to your book.json
, and disable default GitBook code highlighting:
{
"plugins": ["prism", "-highlight"]
}
Override default styles. All css files must reside in the same folder.
"pluginsConfig": {
"prism": {
"css": [
"prismjs/themes/prism-solarizedlight.css"
]
}
}
Originally based on https://github.com/spricity/google_code_prettify.
Apache 2