gitbook plugin [updated pkgs] https://github.com/windhamdavid/gitbook-plugin-prism-dw
|  | 8 years ago | |
|---|---|---|
| .eslintrc | 9 years ago | |
| .gitignore | 9 years ago | |
| .travis.yml | 9 years ago | |
| LICENSE | 11 years ago | |
| README.md | 8 years ago | |
| index.js | 8 years ago | |
| package.json | 8 years ago | |
| prism-ebook.css | 9 years ago | |
| test.js | 8 years ago | 
Add the plugin to your book.json, and disable default GitBook code highlighting:
{
  "plugins": ["prism", "-highlight"]
}
cssOverride default styles. All css files must reside in the same folder.
"pluginsConfig": {
  "prism": {
    "css": [
      "prismjs/themes/prism-solarizedlight.css"
    ]
  }
}
langSupport non-standard syntax prefixes by aliasing existing prefixes.
"pluginsConfig": {
  "prism": {
    "lang": {
      "flow": "typescript"
    }
  }
}
ignoreDue 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
prismjs/themes/prism-okaidia.cssprismjs/themes/prism-solarizedlight.cssprismjs/themes/prism-tomorrow.cssprismjs/themes/prism-dark.cssprismjs/themes/prism-coy.csshttps://github.com/atelierbram/syntax-highlighting
syntax-highlighting/assets/css/prism/prism-base16-ocean.dark.csssyntax-highlighting/assets/css/prism/prism-base16-google.light.csssyntax-highlighting/assets/css/prism/prism-xonokai.cssOriginally based on https://github.com/spricity/google_code_prettify.
Apache 2