Renders markdown content with h1
, h2
, and h3
headings scaled proportionally to demo the
kitty text sizing protocol.
Currently this is basically an extremely simple cat
-like utility for markdown files. Don't be
surprised if this crashes or breaks in some way.
This does not respect code blocks or anything of the sort; all lines that start with any number of
#
characters will be scaled.
Taken from my comment on the Ghostty discussions forum.
out.mp4
md $FILE
# for example, in this repo:
md README.md
# Or with a debug build
zig build run -- README.md
# Build a release version of this in `~/.local/bin/md`.
zig build -Doptimize=ReleaseFast --prefix ~/.local
# Build a release version of this in `./zig-out/bin/md`
zig build -Doptimize=ReleaseFast
# Build a debug build in `./zig-out/bin/md`
zig build