Package Exports
- markdown-it-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 (markdown-it-prism) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
markdown-it-prism

markdown-it plugin to highlight code blocks using Prism
Usage
const md = require('markdown-it')();
const prism = require('markdown-it-prism');
md.use(prism, options);Options
The options object may contain:
| Name | Description | Default |
|---|---|---|
plugins |
Array of Prism Plugins to load. The names to use can be found here. | [] |
init |
A function called after setting up prism. Will receive the prism instance as only argument. Useful for plugins needing further intialisation. | () => {} |