+2
scripts/build-wisp-docs.mjs
+2
scripts/build-wisp-docs.mjs
···
59
59
60
60
function normalizeTitle(title) {
61
61
let t = String(title || "").trim();
62
+
// Strip markdown links: [text](url) -> text
63
+
t = t.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1");
62
64
// If pages follow a "zat - ..." style, drop the redundant prefix in the nav.
63
65
t = t.replace(/^zat\s*-\s*/i, "");
64
66
// Cheaply capitalize (keeps the rest as-authored).