gitbook plugin [updated pkgs] https://github.com/windhamdavid/gitbook-plugin-prism-dw

robert mcguinness fe091546d4 Merge pull request #8 from robmcguinness/master 8 years ago
.gitignore 0b4401402a Initial commit after fork 9 years ago
LICENSE 828f3df964 Initial commit 10 years ago
README.md 8436cd8f1a Gitbook prism plugin upgrades 8 years ago
index.js 8436cd8f1a Gitbook prism plugin upgrades 8 years ago
package.json 8436cd8f1a Gitbook prism plugin upgrades 8 years ago

README.md

Gitbook Plugin for Prism

Before

After

Usage

Add the plugin to your book.json, and disable default GitBook code highlighting:

{
  "plugins": ["prism", "-highlight"]
}

Options

Override default styles. All css files must reside in the same folder.

"pluginsConfig": {  
  "prism": {
    "css": [
      "prismjs/themes/prism-solarizedlight.css"
    ]
  }
}

Credits

Originally based on https://github.com/spricity/google_code_prettify.

License

Apache 2