mdcat
A terminal markdown renderer that makes your markdown files look beautiful in the terminal. Built specifically with iTerm2 users in mind.
Features
- ๐จ Syntax highlighting for code blocks
- ๐ฑ Responsive terminal width handling
- ๐ Pipe support (works with
cat
and other tools)
- ๐ฏ iTerm2 optimized styling
- ๐ Fast rendering
- ๐ Support for all standard markdown features
Installation
Using Go
go install github.com/domano/mdcat@latest
From Source
git clone https://github.com/domano/mdcat
cd mdcat
go build -o mdcat
mv mdcat /usr/local/bin/
Usage
# Read from file
mdcat README.md
# Read from stdin
cat README.md | mdcat
# Read multiple files
mdcat README.md CONTRIBUTING.md
Example
Input markdown:
# Hello World
This is a **bold** statement with some `code`.
```go
fmt.Println("Hello, World!")
```
Will be rendered with proper styling in your terminal!
Development
Requirements:
- Go 1.19 or later
- iTerm2 (recommended)
# Clone the repo
git clone https://github.com/domano/mdcat
cd mdcat
# Install dependencies
go mod download
# Build
go build
# Run tests
go test ./...
Contributing
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch
- Submit a Pull Request
License
MIT License - see LICENSE for details
Credits
Built with:
Author
Dino Omanovic (@domano)