


























This is my markdown viewer for the terminal. It's most notable feature is that it displays headers Bigger™ then other text. This was my main motivation for writing this, as big headers make markdown really more readable and was the only thing making me reach outside of a terminal for reading markdown documents.
I did this by leveraging ratatui-image, which I also had written for another thing. MdFried tries to get your terminal's font, or otherwise prompts you with a font picker. The headers are then rendered as images with cosmic-text. Notably, on kitty there is a [text sizing protocol], which is implemented by MdFried as alternative.
Images are of course also displayed. Note that not every terminal can display images, or display images reliably enough for a TUI. Your best bets are popular terminals such as Kitty, Ghostty, Foot, or WezTerm. Terminals that don't have image support can of course still use MdFried as plain (and boring) markdown viewer.
[text sizing protocol]: https://sw.kovidgoyal.net/kitty/text-sizing-protocol
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。