atproto utils for zig zat.dev
atproto sdk zig

fix: strip markdown links from sidebar titles

Changed files
+2
scripts
+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).