fix: link fragment with accents should be valid if the heading exists

Fixes a regression introduced in v2.3.0, which needed to lower case/manage case insensitive heading.
This commit is contained in:
2024-01-31 21:56:55 +01:00
parent f332c833ca
commit 5af131b840
4 changed files with 32 additions and 21 deletions

View File

@ -26,7 +26,7 @@ const convertHeadingToHTMLFragment = (inlineText) => {
"",
)
.replace(/ /gu, "-"),
)
).toLowerCase()
)
}