From f977443b1487d11dcfa2f35b54a15643ffaf1dcb Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 24 Oct 2023 12:47:15 +0500 Subject: [PATCH] editor: disallow links in inline code --- packages/editor/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/index.ts b/packages/editor/src/index.ts index 7d15df2f2..160890223 100644 --- a/packages/editor/src/index.ts +++ b/packages/editor/src/index.ts @@ -263,7 +263,7 @@ const useTiptap = ( OutlineListItem, OutlineList.configure({ keepAttributes: true, keepMarks: true }), ListItem, - Code.extend({ excludes: "" }), + Code.extend({ excludes: "link" }), Codemark, MathInline, MathBlock,