fix(extension-link): restricts parsing javascript: pseudo-protocol

This commit is contained in:
Akshay Nair 2022-03-24 17:17:08 +05:30 committed by GitHub
parent ab4a0e2507
commit 947f311c0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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