Skip to content

kentaro/go-hoedown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Go-bindings for Hoedown Markdown parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published