Honkit Plugin for Prism
This repository was forked from gaearon/gitbook-plugin-prism for the reason that the latest version of Honkit is not supported. issue
Add the plugin to your book.json
, and disable default Honkit 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"
]
}
}
Support non-standard syntax prefixes by aliasing existing prefixes.
"pluginsConfig": {
"prism": {
"lang": {
"flow": "typescript"
}
}
}
Due to other plugins using code block notion to denote other functionality, you can ignore certain langs
"pluginsConfig": {
"prism": {
"ignore": [
"mermaid",
"eval-js"
]
}
}
https://github.com/PrismJS/prism
https://github.com/atelierbram/syntax-highlighting
Originally based on https://github.com/spricity/google_code_prettify.
Apache 2