{"repo":"statico/md2term","free":true,"listed":false,"github":"https://github.com/statico/md2term","clone":"git clone https://github.com/statico/md2term.git","description":"📕💻 A streaming markdown-to-terminal converter that renders markdown with rich formatting and syntax highlighting. Great for LLMs.","language":"Python","stars":19,"topics":["ansi-colors","cli","command-line-tool","console","markdown","markdown-parser","python","rich","streaming","syntax-highlighting"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"md2term A streaming markdown-to-terminal converter that renders markdown with rich formatting and syntax highlighting. Streaming is supported so you can pipe your favorite LLM CLI tool to it, like llm or Ollama, like this: [!NOTE] This software was created almost entirely by AI with Cursor and Claude 4 Sonnet. Installation Install md2term using uv : Or with pip or pipx : Verify the installation: Usage Command Line Python Library You can also use md2term as a Python library for integrating markdown rendering into your applications: python\\nprint('Hello, World!')\\n The streaming functionality is particularly useful for: - LLM/AI applications that generate content in real-time - Processing large files with immediate visual feedback - Building interactive CLI tools with progressive output See example streaming.py for more detailed examples and patterns. Examples For a comprehensive example of markdown features, see example.md in this repository. Design Decisions Streaming and Timing Strategy The program uses a sophisticated streaming approach designed to provide responsive real-time rendering while minimizing visual flickering and corruption: Smart Update Frequency Control The streaming renderer uses balanced update conditions to determine when to re-render content: 1. Content-based triggers : Updates when 80+ characters are added AND at least 50ms have passed 2. Paragraph breaks : Immediate updates on double newlines ( \\n\\n ) for clear content boundaries 3. Time-based updates : ","default_branch":null,"files":null,"tree":[],"storefront":"/r/statico","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/statico/md2term/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."}