Skip to content

Repository files navigation

Termdown

中文文档

termdown uses the Kitty graphics protocol to render Markdown with large-font headings in the terminal, providing a reading experience closer to a GUI Markdown reader.

termdown rendering the Chinese README termdown rendering the English README in TUI mode

Features

termdown rasterizes H1-H3 headings as PNG images and draws them directly in the terminal through the Kitty graphics protocol. It provides two modes:

  • Interactive TUI (default) -- termdown README.md provides a vim/less-like experience with paging, search, a table of contents, and link navigation for longer documents.
  • Direct output -- termdown --cat README.md prints rendered Markdown like cat, making it suitable for short documents. Piped or redirected output uses text headings instead of Kitty images.

H4-H6 headings always use ANSI bold text instead of simulating more font sizes and weights that could reduce readability in a terminal.

Installation

Cargo

cargo install termdown

Installs into ~/.cargo/bin/. Requires Rust 1.95+.

Install script

curl -fsSL https://raw.githubusercontent.com/rrbe/termdown/master/install.sh | bash

Defaults to /usr/local/bin. Override the target directory with TERMDOWN_INSTALL_DIR.

Manual download
TARGET=aarch64-apple-darwin
BASE="https://github.com/rrbe/termdown/releases/latest/download"

curl -LO "${BASE}/termdown-${TARGET}.tar.gz"
curl -LO "${BASE}/SHA256SUMS"
grep "termdown-${TARGET}.tar.gz" SHA256SUMS | shasum -a 256 -c -

tar xzf "termdown-${TARGET}.tar.gz"
sudo mv termdown /usr/local/bin/

Install from source

cargo install --git https://github.com/rrbe/termdown

Uninstall

curl -fsSL https://raw.githubusercontent.com/rrbe/termdown/master/uninstall.sh | bash
Manual uninstall
rm $(which termdown)
rm -rf ~/.config/termdown

Usage

# Open a file in the interactive TUI (default)
termdown README.md

# Plain cat-style output (non-interactive, pipe-friendly)
termdown --cat README.md
cat notes.md | termdown

# Pick a theme; show help
termdown --theme light README.md
termdown --help

# Live preview: re-render on every save (edit in your editor, watch here)
termdown --watch notes.md

Documentation

Terminal Support

Requires a terminal with Kitty graphics protocol support, such as:

License

Apache-2.0

About

Render Markdown in terminal with large-font headings.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages