LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

glow

terminal markdown renderer

TLDR

Render markdown file
$ glow [README.md]
copy
Render with pager
$ glow -p [file.md]
copy
Render from stdin
$ cat [file.md] | glow
copy
Set width
$ glow -w [80] [file.md]
copy
Browse local files
$ glow
copy
Fetch and render a GitHub README
$ glow github.com/charmbracelet/glow
copy
Read from stdin
$ cat [file.md] | glow -
copy
Edit the config file
$ glow config
copy

SYNOPSIS

glow [options] [source]glow config

DESCRIPTION

glow renders markdown in the terminal with syntax highlighting and formatting. It displays markdown documents beautifully without leaving the command line.The tool supports various styles and can browse markdown files interactively, including fetching README files straight from GitHub or GitLab repositories or arbitrary HTTP(S) URLs. It handles GitHub Flavored Markdown including tables and code blocks. Running glow with no arguments launches a TUI file browser.

PARAMETERS

SOURCE

Markdown file, directory, GitHub/GitLab repo, or HTTP(S) URL to render. Reads stdin when given as `-`.
-p, --pager
Display output in the configured pager (defaults to `less -r`).
-w WIDTH, --width WIDTH
Word wrap width. Defaults to the terminal width.
-s STYLE, --style STYLE
Style name (`auto`, `dark`, `light`) or a path to a custom JSON style file.
-a, --all
Show system files and hidden directories (TUI mode only).
-l, --local
Show local files only, disabling network sources (TUI mode only).
--config FILE
Use an alternate configuration file.
-h, --help
Display help information.

CONFIGURATION

~/.config/glow/glow.yml

Configuration file for default style, width, and pager settings.

INSTALL

sudo apt install glow
copy
sudo dnf install glow
copy
sudo pacman -S glow
copy
sudo zypper install glow
copy
brew install glow
copy
nix profile install nixpkgs#glow
copy

CAVEATS

Terminal must support colors. Some features need true color support. Images not rendered.

HISTORY

glow was created by Charm as part of their suite of terminal tools, bringing beautiful markdown rendering to the command line.

SEE ALSO

mdcat(1), bat(1)

RESOURCES

Copied to clipboard
Kai