immanelg / mdopen

Preview Markdown Files
BSD 3-Clause "New" or "Revised" License
11 stars 2 forks source link
commonmark markdown rust tiny-http

mdopen

github latest_version build_status dependency_status

Quickly preview local markdown files in browser with GitHub-like look.

Doesn't use GitHub API, but just compiles markdown to HTML in Rust.

Installation

Install from crates.io:

cargo install mdopen

or directly from this repo:

cargo install --git https://github.com/immanelg/mdopen.git

Usage

Start the server and open files in Firefox:

mdopen README.md TODO.md -b firefox

This will open files on addresses http://localhost:5032/README.md and http://localhost:5032/TODO.md.

You access any markdown files relative to the current working directory.

You can also browse current directory if you access / or other directory path.

Features

Feedback and pull requests are welcome.

Acknowledgements

grip is similar.