Skip to content

Commit 5418a4d

Browse files
dgrahammuan
andauthored
Fix type cast
Co-Authored-By: Mu-An 慕安 <[email protected]>
1 parent 9dae58a commit 5418a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function indexInList(li: Element): number {
1414
function skipNode(node: Node): boolean {
1515
if (node instanceof HTMLAnchorElement && node.childNodes.length === 1) {
1616
const first = node.childNodes[0]
17-
if (first instanceof HTMLInputElement) {
17+
if (first instanceof HTMLImageElement) {
1818
return first.src === node.href
1919
}
2020
}

0 commit comments

Comments
 (0)