April 24, 2026
Markdown melee in aisle CLI
Show HN: leaf – a terminal Markdown previewer with a GUI-like experience
Terminal toy or power tool? HN feuds over ‘leaf’ as security hawks, emoji cops, and AI skeptics pile on
TLDR: Leaf is a new terminal app that previews Markdown with a slick, almost GUI feel across Mac, Linux, Windows, and Termux. Commenters split fast: minimalists tout pandoc+lynx and flag security risks, while others compare it to Glow and mdterm—and debate whether the feature list screams AI or just polish.
A new terminal toy just crashed the party, and Hacker News did what Hacker News does best: fought about it. Leaf is a Markdown previewer that promises a “GUI-like” feel inside the command line, with mouse support, themes, diagrams, math, and a slick table of contents. The maker says it runs on macOS, Linux, Windows, and even Android via Termux, and offers one-command installs plus a self-updater that checks file fingerprints. Sounds neat—until the comment section showed up.
Security-first folks pounced. One user flexed the old-school approach—“just use pandoc + lynx”—and bragged it avoids a “pile of dependencies,” then waved a scan claiming “3 vulnerabilities” to fix. Cue the peanut gallery chanting “supply chain risks!” Meanwhile, the vibe police lit up over the green checkboxes in the features list, calling it “LLM-coded energy,” sparking an AI authenticity mini-meltdown. Drama level: medium-spicy.
The comparison wars broke out fast: fans of glow and converts to mdterm turned the thread into a terminal taste test. Supporters praised Leaf’s watch mode and LaTeX-to-Unicode math (“finally, pretty notes!”), while minimalists rolled their eyes at the bells and whistles. Verdict from the crowd? Leaf’s flashy, fast, and handy—but trust, simplicity, and aesthetics remain the hill everyone’s ready to die on. Try it, sure. Argue about it, absolutely.
Key Points
- •Leaf is a terminal-based Markdown previewer with a GUI-like experience, available for macOS, Linux, Windows, and Android (via Termux).
- •Installation options include curl-based scripts, a Windows PowerShell script, and npm; updates can be performed with leaf --update (with SHA-256 verification) or via npm.
- •Users can open files, use a watch mode for auto-reload, select files via fuzzy or directory pickers, and stream Markdown through stdin.
- •Features include syntax highlighting, Unicode tables, TOC with active section tracking, search with highlighting, LaTeX-to-Unicode math rendering (including LaTeX/TeX code blocks), theme picker, and help popup.
- •Building from source uses Git and Cargo; the roadmap targets themes, code block copy and horizontal scrolling, and improved search performance; Windows users may need the Microsoft Visual C++ Redistributable.