https://github.com/tirthpatell/mdr
Markdown renderer, editor, and linter for the terminal
https://github.com/tirthpatell/mdr
bubbletea cli glamour golang markdown markdown-editor markdown-linter markdown-renderer terminal tui
Last synced: 4 months ago
JSON representation
Markdown renderer, editor, and linter for the terminal
- Host: GitHub
- URL: https://github.com/tirthpatell/mdr
- Owner: tirthpatell
- License: mit
- Created: 2026-02-11T01:58:41.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-02-11T05:03:56.000Z (4 months ago)
- Last Synced: 2026-02-11T06:45:51.026Z (4 months ago)
- Topics: bubbletea, cli, glamour, golang, markdown, markdown-editor, markdown-linter, markdown-renderer, terminal, tui
- Language: Go
- Homepage: https://github.com/tirthpatell/mdr
- Size: 344 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mdr
[](https://goreportcard.com/report/github.com/tirthpatell/mdr)
[](https://pkg.go.dev/github.com/tirthpatell/mdr)
[](https://opensource.org/licenses/MIT)
[](https://github.com/tirthpatell/mdr/releases)
[](https://codecov.io/gh/tirthpatell/mdr)
Markdown renderer, editor, and linter for the terminal.
## Install
### Homebrew
```bash
brew install tirthpatell/tap/mdr
```
### Go
```bash
go install github.com/tirthpatell/mdr@latest
```
### GitHub Releases
Download binaries from the [releases page](https://github.com/tirthpatell/mdr/releases).
## Usage
### View
Render a markdown file in a scrollable TUI:
```bash
mdr view README.md
```
Pipe from stdin:
```bash
cat README.md | mdr view
```
Print rendered output without TUI:
```bash
mdr view --raw README.md
```
### Edit
Open the TUI editor with live preview:
```bash
mdr edit README.md
```
**Editor keys:** Arrow keys to move, type to edit, Ctrl+S to save, Ctrl+C to quit.
### Lint
Check markdown files for structural issues:
```bash
mdr lint README.md docs/*.md
```
**Rules:**
- `heading-hierarchy` - Heading levels should not skip (e.g., H1 to H3)
- `duplicate-heading` - Headings at the same level should not repeat
- `empty-link` - Links must have a destination
## License
MIT