atproto utils for zig
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: strip markdown links from sidebar titles

zzstoatzz e4d0a4f1 9708fc37

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