0.0.3 • Published 5 months ago
markdown-it-shikix v0.0.3
markdown-it-shikix
Markdown It plugin for shikix
Install
npm i -D markdown-it-shikix
Usage
import MarkdownIt from 'markdown-it'
import Shikix from 'markdown-it-shikix'
const md = MarkdownIt()
md.use(await Shikix({
themes: {
light: 'lumos-light',
dark: 'lumos-dark',
}
}))
Features
Line Highlight
In addition to the features of shikix
, this plugin also supports line highlighting. You can add {1,3-4}
after the language name to highlight the specified lines. For example:
# Hello World
```js {1,3-4}
console.log('line1') // highlighted
console.log('line2')
console.log('line3') // highlighted
console.log('line4') // highlighted
```
License
MIT