idun/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go
Renovate Bot 070be9d164
Some checks failed
Dev Version / Release (push) Has been cancelled
chore(deps): update module github.com/urfave/cli/v2 to v2.27.4
2024-09-14 01:21:16 +00:00

16 lines
361 B
Go

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()),
}...)
}