on master help sign in
schema: strip special characters from section ids
commitd7731470ca795018cec92fcd8a00a5384ba67060 authorMatilde Park <matilde.park@urbit.org> dateMon 13 Jun 2022, 10:48 (4 years ago) parentcb19a83
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}