mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-30 00:11:59 +00:00
8d3ffcd122
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.27.1 to 2.27.2. - [Release notes](https://github.com/urfave/cli/releases) - [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md) - [Commits](https://github.com/urfave/cli/compare/v2.27.1...v2.27.2) --- updated-dependencies: - dependency-name: github.com/urfave/cli/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
17 lines
361 B
Go
17 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()),
|
|
}...)
|
|
}
|