Skip to content

Commit 29aa020

Browse files
committed
Update heading IDs
1 parent dbf5c7b commit 29aa020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/markdownToHtml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const remarkFm = ({
111111
if (lastChild && lastChild.type === "text") {
112112
let string = lastChild.value.replace(/ +$/, "");
113113
let hId = string.toLowerCase().replace(/\s/g, "-");
114-
hId = hId.replace(/[^a-z0-9-]/g, "");
114+
hId = hId.replace(/[^a-zA-Z0-9.]/g, "");
115115

116116
if (!node.data) {
117117
node.data = {};

0 commit comments

Comments
 (0)