npm.io
1.22.0 • Published 1 year ago

@bytemd/plugin-highlight-ssr

Licence
MIT
Version
1.22.0
Deps
1
Size
816 kB
Vulns
0
Weekly
0
Stars
1.4K

@bytemd/plugin-highlight-ssr

npm

ByteMD plugin to highlight code blocks (SSR compatible)

Usage

import highlight from '@bytemd/plugin-highlight-ssr'
import { Editor } from 'bytemd'
import 'highlight.js/styles/default.css'

new Editor({
  target: document.body,
  props: {
    plugins: [
      highlight(),
      // ... other plugins
    ],
  },
})

License

MIT