Sometimes, using Claude is just wild. It had to render Markdown. But I forgot to tell it which library it used. Because I didn't see any package.json change, I asked it. This was the answer:
How Markdown is rendered. There's no library. I wrote a small renderer in markdown.ts (about 400 lines, with 13 tests) because of your "vanilla, only our helpers" rule. It also turned out to be the safest option:
Security: it builds DOM nodes with newHtml/addHtml and never produces an HTML string or uses innerHTML, so a hostile about.md can't inject markup. Raw HTML in the file is dropped and its text kept. Only http(s), mailto and tel links are created, and images must be http(s). Relative URLs are resolved against the site.
Supported: headings (shifted down one level, because the page's h1 is the profile name), paragraphs and line breaks, bold, italic, strikethrough, inline code and code blocks, quotes, nested lists, horizontal rules, links (inline, reference and bare URLs), images, and footnotes.
What's even crazier: it works really well.