Markdown renderer, editor, and linter for the terminal.
brew install tirthpatell/tap/mdrgo install github.com/tirthpatell/mdr@latestDownload binaries from the releases page.
Render a markdown file in a scrollable TUI:
mdr view README.mdPipe from stdin:
cat README.md | mdr viewPrint rendered output without TUI:
mdr view --raw README.mdOpen the TUI editor with live preview:
mdr edit README.mdEditor keys: Arrow keys to move, type to edit, Ctrl+S to save, Ctrl+C to quit.
Check markdown files for structural issues:
mdr lint README.md docs/*.mdRules:
heading-hierarchy- Heading levels should not skip (e.g., H1 to H3)duplicate-heading- Headings at the same level should not repeatempty-link- Links must have a destination
MIT
