This is Go-bindings for Hoedown Markdown parser.
package main
import (
"github.com/kentaro/go-hoedown"
"os"
)
func main () {
parser := hoedown.NewHoedown(map[string]uint{
"extensions": hoedown.EXT_NO_INTRA_EMPHASIS | hoedown.EXT_AUTOLINK,
"renderModes": hoedown.HTML_USE_XHTML | hoedown.HTML_ESCAPE,
})
parser.Markdown(os.Stdout, []byte("# Hoedown"))
}
EXT_NO_INTRA_EMPHASIS
EXT_TABLES
EXT_FENCED_CODE
EXT_AUTOLINK
EXT_STRIKETHROUGH
EXT_UNDERLINE
EXT_SPACE_HEADERS
EXT_SUPERSCRIPT
EXT_LAX_SPACING
EXT_DISABLE_INDENTED_CODE
EXT_HIGHLIGHT
EXT_FOOTNOTES
EXT_QUOTE
HTML_SKIP_HTML
HTML_SKIP_STYLE
HTML_SKIP_IMAGES
HTML_SKIP_LINKS
HTML_EXPAND_TABS
HTML_SAFELINK
HTML_TOC
HTML_HARD_WRAP
HTML_USE_XHTML
HTML_ESCAPE
HTML_PRETTIFY