Skip to content

Commit 947f311

Browse files
authored
fix(extension-link): restricts parsing javascript: pseudo-protocol
1 parent ab4a0e2 commit 947f311

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/extension-link/src/link.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const Link = Mark.create<LinkOptions>({
7878

7979
parseHTML() {
8080
return [
81-
{ tag: 'a[href]' },
81+
{ tag: 'a[href]:not([href *= "javascript:" i])' },
8282
]
8383
},
8484

0 commit comments

Comments
 (0)