@bytemd/plugin-highlight
TypeScript icon, indicating that this package has built-in type declarations

1.21.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @bytemd/plugin-highlight

Weekly Downloads

417

Version

1.21.0

License

MIT

Unpacked Size

936 kB

Total Files

8

Last publish

Collaborators

  • pd4d10