在终端渲染 Markdown

glow

安装

glow | GitHub

# Homebrew
brew install glow

# Snap
sudo snap install glow

# Debian/Ubuntu
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install glow

# WinGet
winget install charmbracelet.glow

# Go
go install github.com/charmbracelet/glow@latest

使用

glow README.md
posted @ 2024-09-19 20:19  Undefined443  阅读(7)  评论(0编辑  收藏  举报