Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 1.26 KB

README.md

File metadata and controls

67 lines (51 loc) · 1.26 KB

go-hoedown

This is Go-bindings for Hoedown Markdown parser.

Usage

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"))
}

Extensions

  • 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

Render Modes

  • 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

See Also

Author

License