I built a zero-dependency streaming Markdown renderer for AI chat replies, n× faster than the next one I benchmarked
I've been building chat UIs for agents and kept running into the same issues with react-markdown: it re-parses the whole reply on every token, so long answers get noticeably slower, and you see raw ** and half-typed [links](htt until the token that closes them arrives. So I wrote my own renderer.