{"repo":"xemantic/markanywhere","free":true,"listed":false,"github":"https://github.com/xemantic/markanywhere","clone":"git clone https://github.com/xemantic/markanywhere.git","description":"Incremental Markdown parser that emits streams of semantic events, plus tools to manipulate them — designed for real-time rendering of streamed LLM output.","language":"Kotlin","stars":27,"topics":["kotlin","library","markdown","commonmark","gfm","incremental-parser","kmp","kotlin-lib","kotlin-multiplatform","llm-streaming"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"markanywhere Incremental Markdown parser that emits streams of semantic events, plus tools to manipulate them — designed for real-time rendering of streamed LLM output. Use cases Markdown Parsing Will print: The stream is append-only: each event is emitted as soon as the parser commits to it, so opens before Hello arrives and opens the moment the resolves. The Markdown streaming and the literal tag produce the same kind of mark / unmark events — the only difference is \"tagged\":true , flagging the b as real HTML in the source rather than Markdown-derived (the em , being Markdown, omits it). Backed by the first test in MarkanywhereParserTest — should parse the README parsing example . Rendering Markdown as HTML Will print: Backed by the first test in SemanticEventsRenderingTest — should render the README HTML example . Wrapping parsed Markdown in a complete HTML document wrapInHtmlDocument() (in markanywhere-html ) wraps the event stream in an html / head / body structure, populating the head from a leading front matter block: title becomes , lang becomes the attribute, and every other flat key becomes a — the exact inverse of simplifyHtml 's -to-front-matter extraction, so the two round-trip. Will print: Without a front matter block the head is empty and body content streams through untouched; anything beyond the flat key: value (YAML) / key = \"value\" (TOML) subset is skipped gracefully. Backed by WrapInHtmlDocumentTest — should wrap parsed Markdown in a complete HTML document","default_branch":null,"files":null,"tree":[],"storefront":"/r/xemantic","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xemantic/markanywhere/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}