I fixed the 9 most common ways LLM output breaks markdown, feedback wanted
reddit SideProject · 原文链接 ↗ · 54 分
I kept hitting the same handful of markdown failures over and over while running an AI service, unclosed code fences, missing space after a heading hash, bullet markers switching mid list, tables missing a separator row. Once I looked around, these werent just my problem, theyre documented, recurring failures reported across developer communities and public issue trackers (a couple trace straight back to anthropics/claude-code's own issue tracker). So I built llm-markdown-sanitizer, one function that cleans up 9 of these patterns before you render or store the output. Python and Java, sam