Configs2026年4月12日·1 分钟阅读

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.

AI
AI Open Source · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

brew install glow                           # macOS
go install github.com/charmbracelet/glow@latest
sudo apt install glow                       # Debian/Ubuntu
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
介绍

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.

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

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产