mdr michaelsanford
Use this command to install mdr:
winget install --id=michaelsanford.mdr -e A beautiful, cross-platform terminal markdown renderer. Read docs, READMEs, and notes without leaving your shell.
winget install --id=michaelsanford.mdr -e A beautiful, cross-platform terminal markdown renderer. Read docs, READMEs, and notes without leaving your shell.
A cross-platform terminal-based markdown renderer for .NET 9.
Renders markdown with full ANSI formatting — bold, italic, colors, syntax-highlighted code blocks, tables, and more — adapted to your terminal width. Includes an interactive pager with vim-style navigation and multiple color schemes.
winget install michaelsanford.mdr
Requires .NET 9 SDK.
dotnet build -c Release
Or publish a self-contained binary for your platform:
dotnet publish -c Release -r linux-x64 --self-contained
dotnet publish -c Release -r osx-arm64 --self-contained
dotnet publish -c Release -r win-x64 --self-contained
# Render a file
mdr README.md
# Pipe from stdin (bash)
cat README.md | mdr -
# Pipe from stdin (PowerShell)
Get-Content README.md | mdr -
When output exceeds the terminal height, mdr enters an interactive pager. If output is piped or fits on screen, it prints directly.
| Key | Action |
|---|---|
| ↑ / k | Scroll up |
| ↓ / j | Scroll down |
| PgUp / b | Page up |
| PgDn / Space | Page down |
| Home / g | Jump to top |
| End / G | Jump to bottom |
| t | Cycle color scheme |
| q / Esc | Quit |
Press t to cycle through:
MIT