bytemd/packages/plugin-highlight
Rongjian Zhang 02ebc5dd67 v1.20.0 2023-01-04 14:44:14 +08:00
..
src build: upgrade deps 2022-02-27 15:10:31 +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

npm

ByteMD plugin to highlight code blocks

Usage

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
    ],
  },
})

License

MIT