bytemd/packages/plugin-highlight-ssr
Rongjian Zhang 02ebc5dd67 v1.20.0 2023-01-04 14:44:14 +08:00
..
src fix(highlight-ssr): migrate to rehype-highlight@6 2023-01-04 13:28:26 +08:00
README.md docs: add script for styles import 2023-01-03 19:39:49 +08:00
package.json v1.20.0 2023-01-04 14:44:14 +08:00
tsconfig.json build: upgrade 2022-04-23 23:46:11 +08:00

README.md

@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