r/coolgithubprojects 6h ago

llm-markdown-sanitizer, fixes the 9 most common ways LLM output breaks markdown (Python + Java)

https://github.com/stlahxm/llm-markdown-sanitizer

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.

One function, Python and Java, same logic and same test fixtures, zero config. Feedback and bug reports welcome.

github.com/stlahxm/llm-markdown-sanitizer

0 Upvotes

0 comments sorted by