Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: disallow links in inline code

Abdullah Atta8e3df8d41bb1
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,