@bytemd/plugin-highlight-ssr

ByteMD plugin to highlight code blocks (SSR compatible)

Usage no npm install needed!

<script type="module">
  import bytemdPluginHighlightSsr from 'https://cdn.skypack.dev/@bytemd/plugin-highlight-ssr';
</script>

README

@bytemd/plugin-highlight-ssr

npm

ByteMD plugin to highlight code blocks (SSR compatible)

Usage

import { Editor } from 'bytemd'
import highlight from '@bytemd/plugin-highlight-ssr'

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

License

MIT