An open API service indexing awesome lists of open source software.

https://github.com/cpuguy83/go-md2man


https://github.com/cpuguy83/go-md2man

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

go-md2man
=========

Converts markdown into roff (man pages).

Uses [blackfriday](https://github.com/russross/blackfriday) to process markdown into man pages.

### Usage

```bash
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`:

```bash
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
```