Stop Fighting AI Formatting: How I Built a "Sanitizer" for Messy AI Markdown
Dev.to AI
•
Generative AI
The Problem: The "AI-to-Doc" Friction We’ve all been there. You ask an AI like ChatGPT, Gemini, or NotebookLM to explain a complex topic. The output is great, but when you copy-paste it into a professional document or a standard editor, it looks. broken. The biggest culprits? LaTeX delimiters. AI tools love using for block math and for inline math. Most web-based markdown parsers don’t recognize these out of the box, leaving your document littered with backslashes and brackets instead of beautiful equations. I decided to build a solution: Markdown Latex Pdf generator.