on master help sign in
schema: cover all rune chars

Fixes #1562

commit3ab86ccd11eab917c3f919b29ae693ded57d9007 authorMatilde Park <matilde.park@urbit.org> dateMon 13 Jun 2022, 17:51 (4 years ago) parentd773147
1 file changed+1−1
components/schema/Heading.markdoc.js+1−1
components/schema/Heading.markdoc.js+1−1
@@ -11,7 +11,7 @@ function generateID(children, attributes) {
1111 return bottomChildren
1212 .filter((child) => typeof child === "string")
1313 .join(" ")
14− .replace(/[?:+#]/g, "")
14+ .replace(/[=?!><:;,+#^|$&~"*@\._%/]/g, "")
1515 .replace(/\s+/g, "-")
1616 .toLowerCase();
1717}