Merge pull request #2646 from phenax/patch-1

fix(extension-link): prevent parsing `javascript:` pseudo-protocol
This commit is contained in:
bdbch
2022-04-12 10:14:40 +02:00
committed by GitHub

View File

@@ -78,7 +78,7 @@ export const Link = Mark.create<LinkOptions>({
parseHTML() {
return [
{ tag: 'a[href]' },
{ tag: 'a[href]:not([href *= "javascript:" i])' },
]
},