podman-build/test/tools/vendor/github.com/cpuguy83/go-md2man/v2
2025-10-11 12:30:35 +09:00
..
md2man First commit for v5.6.2 2025-10-11 12:30:35 +09:00
.gitignore First commit for v5.6.2 2025-10-11 12:30:35 +09:00
.golangci.yml First commit for v5.6.2 2025-10-11 12:30:35 +09:00
Dockerfile First commit for v5.6.2 2025-10-11 12:30:35 +09:00
go-md2man.1.md First commit for v5.6.2 2025-10-11 12:30:35 +09:00
LICENSE.md First commit for v5.6.2 2025-10-11 12:30:35 +09:00
Makefile First commit for v5.6.2 2025-10-11 12:30:35 +09:00
md2man.go First commit for v5.6.2 2025-10-11 12:30:35 +09:00
README.md First commit for v5.6.2 2025-10-11 12:30:35 +09:00

go-md2man

Converts markdown into roff (man pages).

Uses blackfriday to process markdown into man pages.

Usage

go install github.com/cpuguy83/go-md2man/v2@latest

go-md2man -in /path/to/markdownfile.md -out /manfile/output/path

For go 1.24 and above, you can run it with go tool:

go get -tool github.com/cpuguy83/go-md2man/v2@latest
# it will be appended to `tool` directive in go.mod file

go tool go-md2man -in /path/to/markdownfile.md -out /manfile/output/path