@alterjs/saber-plugin-prismjs
v0.12.2
Published
A syntax highlighting plugin for Saber, using prismjs
Downloads
7
Readme
@alterjs/saber-plugin-prismjs
How to use
Install this package:
yarn add prismjs @alterjs/saber-plugin-prismjs
Use it in your saber-config.yml
:
plugins:
- resolve: '@alterjs/saber-plugin-prismjs'
Include CSS
In your saber-browser.js
:
// saber-browser.js
import 'prismjs/themes/prism.css'
import '@alterjs/saber-plugin-prismjs/default.css'
License
MIT © EGOIST