ByteMD plugin to highlight code blocks (SSR compatible)
import { Editor } from 'bytemd'
import highlight from '@bytemd/plugin-highlight-ssr'
new Editor({
target: document.body,
props: {
plugins: [
highlight(),
// ... other plugins
],
},
})
MIT