Terminal Markdown Renderer for PowerShell
psglow is a PowerShell script that renders Markdown to the terminal with ANSI formatting. It provides beautiful, colorized output for Markdown files and piped content.
- Headings (#, ##, etc.) - Rendered in cyan with indentation by level
- Bold text (text) - ANSI bold formatting
- Italic text (text) - ANSI italic formatting
- Links (label) - Underlined blue text with dimmed URL in parentheses
- Bullet lists (*, -, +) - Yellow bullet points
- Ordered lists (1., 2.) - Plain text formatting
- Code fences (``` or ~~~) - Dimmed, indented blocks with language labels
- Tables - Formatted tables with alignment support and bold headers
- Nested formatting - Supports bold with nested italic
- Graceful fallback - Unsupported content passes through unchanged
# Render a Markdown file
psglow README.md
pwsh -File psglow.ps1 README.md# Pipe Markdown content
"## Heading" | psglow
echo "**Bold** and *italic* text" | pwsh -File psglow.ps1The script works on Windows, macOS, and Linux with PowerShell 7+.
# Main Title
This has **bold** and *italic* text.
## Subtitle
Here's a [link](https://example.com).
### Lists
* First bullet
* Second bullet
1. First item
2. Second itemGet-Process | Where-Object CPU -gt 100| Name | Role | Status |
|---|---|---|
| Alice | Developer | Active |
| Bob | Designer | Away |
- Clone or download
psglow.ps1 - Make it executable:
chmod +x psglow.ps1 - Run with:
pwsh -File psglow.ps1 <file>or use the provided wrapper script
- PowerShell 7.0 or later
- Terminal with ANSI color support