UNPKG

prosemirror-highlight

Version:

A ProseMirror plugin to highlight code blocks

15 lines (14 loc) 469 B
import { n as Parser, r as ParserOptions } from "./types-jXJYKXGQ.js"; import { Highlighter } from "@lezer/highlight"; import { Tree } from "@lezer/common"; //#region src/lezer.d.ts declare function createParser({ parse, highlighter }: { parse: (options: ParserOptions) => Tree | undefined; highlighter: Highlighter | readonly Highlighter[]; }): Parser; //#endregion export { type Parser, type ParserOptions, createParser }; //# sourceMappingURL=lezer.d.ts.map