/** * The single markdown language configuration used by the editor and its tests. * * Kept in one place because a parser extension that reaches the editor but not * the test helpers (or vice versa) fails silently — the suite would keep * asserting the pre-extension tree shape while the app renders something else. */ import { markdown, markdownLanguage } from '@codemirror/lang-markdown'; import { GFM } from '@lezer/markdown'; import { wikiLinkMarkdown } from './livePreview/wikiLinkParser'; export function textileMarkdown() { return markdown({ base: markdownLanguage, extensions: [GFM, wikiLinkMarkdown], // `listEditingKeymap` supplies its own list handling at Prec.high. addKeymap: false, }); }