fix: empty id fragment should be invalid

This commit is contained in:
2024-01-12 00:10:00 +01:00
parent 747203c23b
commit 68f35ddc0b
2 changed files with 15 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ const getMarkdownIdOrAnchorNameFragments = (content) => {
}
const anchorIdOrName = anchorMatch[1]
if (anchorMatch[1] === undefined) {
if (anchorIdOrName === undefined) {
continue
}