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

1.22.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

/@bytemd/plugin-highlight/

    Package Sidebar

    Install

    npm i @bytemd/plugin-highlight

    Weekly Downloads

    353

    Version

    1.22.0

    License

    MIT

    Unpacked Size

    936 kB

    Total Files

    8

    Last publish

    Collaborators

    • pd4d10