DockerCLI/vendor/github.com/cpuguy83/go-md2man/v2
Sebastiaan van Stijn 260ba1a8a2
vendor: cpuguy83/go-md2man/v2 v2.0.1
full diff: https://github.com/cpuguy83/go-md2man/compare/v2.0.0...v2.0.1

- Fix handling multiple definition descriptions
- Fix inline markup causing table cells to split
- Remove escaping tilde character (prevents tildes (`~`) from disappearing).
- Do not escape dash, underscore, and ampersand (prevents ampersands (`&`) from disappearing).
- Ignore unknown HTML tags to prevent noisy warnings

With this, generating manpages becomes a lot less noisy; no more of these:

    WARNING: go-md2man does not handle node type HTMLSpan
    WARNING: go-md2man does not handle node type HTMLSpan
    WARNING: go-md2man does not handle node type HTMLSpan

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 13e8225007)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-07-21 11:04:19 +02:00
..
md2man vendor: cpuguy83/go-md2man/v2 v2.0.1 2021-07-21 11:04:19 +02:00
LICENSE.md vendor: spf13/cobra v1.0.0, go-md2man v2.0.0, blackfriday v2.0.1 2020-05-04 17:00:46 +02:00
README.md vendor: spf13/cobra v1.0.0, go-md2man v2.0.0, blackfriday v2.0.1 2020-05-04 17:00:46 +02:00
go.mod vendor: cpuguy83/go-md2man/v2 v2.0.1 2021-07-21 11:04:19 +02:00
md2man.go vendor: spf13/cobra v1.0.0, go-md2man v2.0.0, blackfriday v2.0.1 2020-05-04 17:00:46 +02:00

README.md

go-md2man

Converts markdown into roff (man pages).

Uses blackfriday to process markdown into man pages.

Usage

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

How to contribute

We use go modules to manage dependencies. As such you must be using at lest go1.11.