0.1.0 • Published 4 years ago
markdown-it-highlight-i v0.1.0
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
0.1.0
4 years ago