Why Markdoc for LLM Streaming UI
dev.to
Every AI chatbot I've built hits the same wall. The LLM writes beautiful markdown — headings, bold, lists, code blocks. Then someone asks for a chart. Or a form. Or a data table with sortable columns. Suddenly you need a component rendering layer. And every approach has tradeoffs. That's why I built mdocUI: a streaming-first generative UI library that lets LLMs mix markdown and interactive components in one output stream. The Problem JSON blocks in markdown Some teams embed JSON