Skip to content

Commit a1e4719

Browse files
imjohnbokeithamus
andauthored
Update src/paste-markdown-html.ts
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
1 parent b5eec8a commit a1e4719

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/paste-markdown-html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function isEmptyString(text: string): boolean {
9090
return !text || text?.trim().length === 0
9191
}
9292

93-
function isLink(node: HTMLElement): boolean {
93+
function isLink(node: HTMLElement): node is HTMLAnchorElement {
9494
return node.tagName.toLowerCase() === 'a' && node.hasAttribute('href')
9595
}
9696

0 commit comments

Comments
 (0)