go-md2man(1)

go-md2man1

Convert markdown files into manpages

Usage

go-md2man [-in=/path/to/md/file] [-out=/path/to/output]

Overview

go-md2man converts standard markdown formatted documents into manpages. It is written purely in Go so as to reduce dependencies on 3rd party libs.

By default, the input is stdin and the output is stdout.

Options

-in=file

Path to markdown file to be processed.

Defaults to stdin.

-out=file

Path to output processed file.

Defaults to stdout.

Examples

Convert the markdown file go-md2man.1.md into a manpage:

go-md2man < go-md2man.1.md > go-md2man.1

Same, but using command line arguments instead of shell redirection:

go-md2man -in=go-md2man.1.md -out=go-md2man.1

Releases

6 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9–10
  2. 11
  3. 12
  4. 13
  5. Arch

-in since Arch Linux 2026-11-01; -out since Arch Linux 2026-11-01.

History

January 2015, Originally compiled by Brian Goff ([email protected]).

From go-md2man 2.0.7-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.