From 6dfe7d707ae6cb48addd7227bc18bb4985511322 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 11 Dec 2024 21:07:15 -0500 Subject: [PATCH] fix: Token type not supported by Markdown parser, closes #8101 --- shared/editor/lib/markdown/rules.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared/editor/lib/markdown/rules.ts b/shared/editor/lib/markdown/rules.ts index d0259e409f..dd8948f320 100644 --- a/shared/editor/lib/markdown/rules.ts +++ b/shared/editor/lib/markdown/rules.ts @@ -32,6 +32,9 @@ export default function makeRules({ if (!schema?.nodes.hr) { markdownIt.disable("hr"); } + if (!schema?.nodes.heading) { + markdownIt.disable("heading"); + } plugins.forEach((plugin) => markdownIt.use(plugin)); return markdownIt;