markdown-it-shikix
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i markdown-it-shikix

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

6.38 kB

Total Files

6

Last publish

Collaborators

  • dennisollhoff