
godep restore pushd $GOPATH/src/github.com/appc/spec git co master popd go get go4.org/errorutil rm -rf Godeps godep save ./... git add vendor git add -f $(git ls-files --other vendor/) git co -- Godeps/LICENSES Godeps/.license_file_state Godeps/OWNERS
20 lines
541 B
Go
20 lines
541 B
Go
package md2man
|
|
|
|
import (
|
|
"github.com/russross/blackfriday"
|
|
)
|
|
|
|
func Render(doc []byte) []byte {
|
|
renderer := RoffRenderer(0)
|
|
extensions := 0
|
|
extensions |= blackfriday.EXTENSION_NO_INTRA_EMPHASIS
|
|
extensions |= blackfriday.EXTENSION_TABLES
|
|
extensions |= blackfriday.EXTENSION_FENCED_CODE
|
|
extensions |= blackfriday.EXTENSION_AUTOLINK
|
|
extensions |= blackfriday.EXTENSION_SPACE_HEADERS
|
|
extensions |= blackfriday.EXTENSION_FOOTNOTES
|
|
extensions |= blackfriday.EXTENSION_TITLEBLOCK
|
|
|
|
return blackfriday.Markdown(doc, renderer, extensions)
|
|
}
|