Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com
at 9a6ba7fadf312bda2dc714899aa76bcb8f00d5aa 14 lines 382 B view raw
1import {LRParser} from "@lezer/lr" 2import {Input, PartialParse, Parser, TreeCursor, ParseWrapper} from "@lezer/common" 3 4export const parser: LRParser 5 6export function configureNesting(tags?: readonly { 7 tag: string, 8 attrs?: (attrs: {[attr: string]: string}) => boolean, 9 parser: Parser 10}[], attributes?: { 11 name: string, 12 tagName?: string, 13 parser: Parser 14}[]): ParseWrapper