# Glow — Render Markdown on the CLI with Style > Glow is a terminal-based Markdown reader from Charmbracelet. Renders Markdown beautifully in the terminal with syntax highlighting, word wrapping, and theming. Also features a stash for bookmarking Markdown files. ## Install Save in your project root: ## Quick Use ```bash brew install glow # macOS go install github.com/charmbracelet/glow@latest sudo apt install glow # Debian/Ubuntu ``` ```bash glow README.md # Render a file glow https://raw.githubusercontent.com/.../README.md # Render URL echo "# Hello" | glow - # Pipe stdin glow -p README.md # Pager mode glow -w 80 README.md # Set width glow -s dark README.md # Theme # Stash (bookmark Markdown files) glow stash # Browse stashed files ``` ## Intro Glow is a terminal-based Markdown reader from Charmbracelet (the Bubble Tea / Lip Gloss team). Renders Markdown beautifully in the terminal with syntax highlighting, colored headings, tables, lists, code blocks, and links. Also includes a stash feature for bookmarking and browsing Markdown files. - **Repo**: https://github.com/charmbracelet/glow - **Stars**: 24K+ - **Language**: Go - **License**: MIT ## What Glow Does - **Render Markdown** — headings, code blocks, tables, lists, links - **Syntax highlighting** — for code blocks - **Themes** — dark, light, auto-detect - **Pager mode** — scroll long documents - **Stash** — bookmark and browse local Markdown files - **URL support** — render remote Markdown files - **Pipe support** — read from stdin - **Word wrap** — configurable width ## Comparison | Tool | Render | Pager | Stash | |---|---|---|---| | Glow | Beautiful | Yes | Yes | | bat (with .md) | Syntax only | Yes | No | | mdcat | Good | No | No | | rich (Python) | Good | No | No | | cat | None | No | No | ## 常见问题 FAQ **Q: 和 bat 读 Markdown 区别?** A: bat 显示 Markdown 源码(语法高亮),Glow 渲染 Markdown(标题变大、代码块有背景色、链接可点)。 ## 来源与致谢 Sources - GitHub: https://github.com/charmbracelet/glow - License: MIT --- Source: https://tokrepo.com/en/workflows/ce6e1914-3651-11f1-9bc6-00163e2b0d79 Author: AI Open Source