4 releases
0.1.3 | Jan 16, 2022 |
---|---|
0.1.2 | Oct 31, 2020 |
0.1.1 | Apr 23, 2020 |
0.1.0 | Apr 23, 2020 |
#535 in Text processing
180 downloads per month
14KB
330 lines
Convert Markdown to man pages
This can be used as a Rust library or as a command-line executable.
Installation
-
Install Rust 1.42 or later
-
Run
cargo install mandown
Usage
The mandown
command takes a path as an argument, and prints manpage to stdout.
mandown README.md > converted.1
man ./converted.1
You can specify path as -
to read markdown from stdin. Second and third argument can specify program name and manpage section.
cat README.md | mandown - MYPROGRAM 1 > converted.1
man ./converted.1
Dependencies
~1MB
~18K SLoC