Compare commits

...

1 Commits

Author SHA1 Message Date
Ammar Ahmed
6705369a21 editor: fix n.startsWith is not a function 2024-05-04 00:33:23 +05:00

View File

@@ -166,7 +166,7 @@ export const Link = Mark.create<LinkOptions>({
renderHTML({ HTMLAttributes }) {
// False positive; we're explicitly checking for javascript: links to ignore them
if (HTMLAttributes.href?.startsWith("javascript:")) {
if (HTMLAttributes.href?.startsWith?.("javascript:")) {
// strip out the href
return [
"a",