Clone this repo:
  1. 061b6c7 Merge pull request #141 from kolyshkin/fix-long-tables by Brian Goff · 1 year, 6 months ago upstream/master v2.0.7
  2. dcb0114 Table rendering fix by Kir Kolyshkin · 1 year, 6 months ago
  3. 75548be Merge pull request #142 from kolyshkin/golangci-v2 by Brian Goff · 1 year, 6 months ago
  4. 993ceeb .golangci.yml: add some more linters by Kir Kolyshkin · 1 year, 6 months ago
  5. 68539cc md2man: remove unused parameters by Kir Kolyshkin · 1 year, 6 months ago

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