md-reader
A simple Ruby gem that opens Markdown files in your browser as formatted HTML.
Installation
gem install md-reader
Usage
md-reader README.md
That's it. The file opens in your default browser with GitHub-like styling.
Features
- Syntax highlighting for fenced code blocks (Ruby, Python, JS, Go, and 200+ languages)
- Tables, strikethrough, autolinks
- Blockquotes, footnotes
- Clean GitHub-inspired CSS — no external dependencies at runtime
- Temporary file is cleaned up automatically on exit
Development
git clone https://github.com/italomatos/md-reader
cd md-reader
bundle install
bundle exec bin/md-reader test.md
Contributing
- Fork the repo
- Create a feature branch (
git checkout -b feature/my-feature) - Commit your changes
- Open a Pull Request
License
MIT — see LICENSE.