We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5eec8a commit a1e4719Copy full SHA for a1e4719
src/paste-markdown-html.ts
@@ -90,7 +90,7 @@ function isEmptyString(text: string): boolean {
90
return !text || text?.trim().length === 0
91
}
92
93
-function isLink(node: HTMLElement): boolean {
+function isLink(node: HTMLElement): node is HTMLAnchorElement {
94
return node.tagName.toLowerCase() === 'a' && node.hasAttribute('href')
95
96
0 commit comments