/** * Registers a custom `pretext-markdown` language in Monaco with a Monarch * tokenizer tailored for PreTeXt-flavoured Markdown. * * Differences from the built-in `markdown` language: * - 4-space-indented lines are NOT coloured as code blocks. * - Colon-fenced directives (:::theorem) are highlighted as keywords. * - Python-style directive lines (Theorem: or Theorem[Title]:) are highlighted as keywords. * - Math delimiters ($, $$, \[, \() are highlighted as numbers. * * Token types are chosen to match Monaco's built-in Monarch theme rules: * - `keyword` → colored (blue/purple) — used for headings, directives, list markers * - `strong` → bold font — used for **bold** and __bold__ * - `emphasis` → italic font — used for *italic* * - `term` → bold + italic font — used for _term_ (a PreTeXt ) * - `variable.source.markdown` → inline code color * - `string` → string color — used for fenced code, links, escapes * - `number` → number color — used for math * - `comment` → comment color — used for block quotes */ export declare function registerMarkdownSyntax(monaco: any): { dispose: () => void; };