UNPKG

prosemirror-highlight

Version:

A ProseMirror plugin to highlight code blocks

13 lines (10 loc) 367 B
import { Root } from 'hast'; import { P as Parser } from './types-BIUZQh-P.js'; import 'prosemirror-model'; import 'prosemirror-view'; type Lowlight = { highlight: (language: string, value: string) => Root; highlightAuto: (value: string) => Root; }; declare function createParser(lowlight: Lowlight): Parser; export { type Lowlight, Parser, createParser };