vendor: github.com/docker/cli-docs-tool v0.8.0

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson
2024-07-03 11:45:42 +02:00
parent 7b80ad7069
commit 1774aa0cf0
28 changed files with 9698 additions and 69 deletions

View File

@ -0,0 +1,16 @@
package md2man
import (
"github.com/russross/blackfriday/v2"
)
// Render converts a markdown document into a roff formatted document.
func Render(doc []byte) []byte {
renderer := NewRoffRenderer()
return blackfriday.Run(doc,
[]blackfriday.Option{
blackfriday.WithRenderer(renderer),
blackfriday.WithExtensions(renderer.GetExtensions()),
}...)
}