Skip to content
/ md Public

Markdown renderer demo for the new Kitty text scaling protocol

Notifications You must be signed in to change notification settings

reykjalin/md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md

Only works in nightly builds of Kitty (or Kitty v0.40.0+ when released)

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.

Demo

Taken from my comment on the Ghostty discussions forum.

out.mp4

Usage

md $FILE

# for example, in this repo:
md README.md

# Or with a debug build
zig build run -- README.md

Build

# 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

About

Markdown renderer demo for the new Kitty text scaling protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages