mirror of https://github.com/docker/cli.git
260ba1a8a2
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
|
||
---|---|---|
.. | ||
md2man | ||
LICENSE.md | ||
README.md | ||
go.mod | ||
md2man.go |
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.