glow(1)
Render markdown files and stdin to the terminal with syntax highlighting and formatting.
Synopsis
glow [OPTION]... [FILE]...Description
Glow is a markdown renderer for the terminal that converts markdown documents to beautifully formatted output with colors, bold, italics, and proper spacing. It supports reading from files or stdin, making it useful for viewing README files, documentation, and formatted text in the terminal.
Without arguments, glow enters interactive mode where you can browse local markdown files. Pipe markdown content to glow or specify file paths to render them directly.
Common options
| Flag | What it does |
|---|---|
-p, --pager | display output in a pager (less) for scrolling through long documents |
-s, --style STYLE | choose color style (dark, light, notty); auto-detect by default |
-w WIDTH, --width WIDTH | wrap output to specified character width (default: terminal width) |
-l, --line-numbers | display line numbers for code blocks |
--no-pager | disable pager; output directly to stdout |
-j, --json | output as JSON instead of rendering to terminal |
--help | show help message and exit |
--version | show version number and exit |
Examples
render a markdown file to the terminal with formatting and colors
glow README.mdpipe markdown content from a file into glow for rendering
cat file.md | glowrender markdown and pipe through a pager for scrolling through long files
glow -p README.mdrender markdown using a light color scheme suitable for light terminals
glow -s light docs/guide.mdrender markdown wrapped to 80 characters per line
glow -w 80 article.mdenter interactive mode to browse and select markdown files in current directory
glowrender markdown with line numbers shown in code blocks
glow -l code-doc.mdfetch and render markdown from a remote URL via pipe
curl https://example.com/file.md | glow