diff --git a/packages/extension-link/src/link.ts b/packages/extension-link/src/link.ts index 99939cbe4..0ea72dffa 100644 --- a/packages/extension-link/src/link.ts +++ b/packages/extension-link/src/link.ts @@ -78,7 +78,7 @@ export const Link = Mark.create({ parseHTML() { return [ - { tag: 'a[href]' }, + { tag: 'a[href]:not([href *= "javascript:" i])' }, ] },