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