markdown-it-highlight-i
v0.1.0
Published
use highlight.js for interative markdown.
Downloads
4
Maintainers
Readme
markdown-it-highlight-i
Preset to use highlight.js with markdown-it for [interactive markdown] only.
Usage
const md = require('markdown-it')()
.use(require('markdown-it-highlight-i'), opts)
// All code blocks will be highlighted unless it is playable block.
The opts
object can contain:
Name | Description | Default
-------|-------------------------------------------------------------------------|--------
auto
| Whether to automatically detect language if not specified. | true
code
| Whether to add the hljs
class to raw code blocks (not fenced blocks). | true
Thanks Original markdown-it-highlightjs