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