JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 290
  • Score
    100M100P100Q121913F
  • License Apache-2.0

Prism highlighting for gitbook

Package Exports

  • gitbook-plugin-prism

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gitbook-plugin-prism) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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