r/C_Programming • u/CJCCJJ • Sep 12 '26
Project I made a markdown real-time streaming CLI renderer in C
Hi! I wanted a CLI Markdown renderer that supports real-time streaming without buffering the entire document. I couldn’t find a good one, but I discovered MD4C, a very fast Markdown parser written in C. It still buffers the entire document, but uses a flat-buffer design, so I reworked its parsing model to support real-time streaming and wrote an ANSI renderer for it.
The result is mdflow, which reliably renders streaming Markdown in real time. It’s written entirely in C, with a 300 KB binary - about 1/20 the size of other mainstream renderers. It’s also 10 to 100 times faster, uses only about 2 MB of RAM, and its memory usage does not grow with the input size, while other renderers may use 10x to 100x more memory.
Most importantly, it supports streaming when other renderers cannot.
It might be useful for your daily workflow or your next C project!
Github repo: https://github.com/cjccjj/mdflow
•
u/github-guard Sep 12 '26
🔍 GitHub Guard: Trust Report
This project scored 3/6 on our safety audit.
Audit Breakdown:
2
u/AutoModerator Sep 12 '26
Hi /u/CJCCJJ,
Your submission in r/C_Programming was filtered because it links to a git project.
You must edit the submission or respond to this comment with an explanation about how AI was involved in the creation of your project.
While AI-generated code is not disallowed, low-effort "slop" projects may be removed and it's likely that other users push back strongly on substantially AI-generated projects.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/[deleted] Sep 15 '26
[removed] — view removed comment