CommonMark wrapper for Go
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test_data Added cmark_parse_file Nov 29, 2014
.gitattributes adding .gitattribute file Feb 14, 2015
.gitignore updated to cmark 0.25.2 Mar 26, 2016
.travis.yml updated to cmark 0.25.2 Mar 26, 2016
LICENSE some cleanup. License updates Feb 14, 2015
README.md some cleanup. License updates Feb 14, 2015
blocks.c updated to cmark 0.28.0 Aug 20, 2017
buffer.c updated to cmark 0.28.0 Aug 20, 2017
buffer.h updated to cmark 0.26.1 Jul 16, 2016
case_fold_switch.inc updated to cmark 0.28.0 Aug 20, 2017
chunk.h updated to cmark 0.28.0 Aug 20, 2017
cmark.c updated to cmark 0.28.0 Aug 20, 2017
cmark.h fix build Aug 20, 2017
cmark_ctype.c updated to cmark 0.26.1 Jul 16, 2016
cmark_ctype.h updated to cmark 0.26.1 Jul 16, 2016
cmark_export.h updated to cmark 0.22 Aug 26, 2015
cmark_version.h updated to cmark 0.26.1 Jul 16, 2016
commonmark.c updated to cmark 0.28.0 Aug 20, 2017
commonmark.go Updated to cmark 0.21.0 Jul 15, 2015
commonmark_test.go updated to cmark 0.28.0 Aug 20, 2017
config.h updated to cmark 0.25.2 Mar 26, 2016
entities.inc updated to cmark 0.28.0 Aug 20, 2017
houdini.h updated to cmark 0.22 Aug 26, 2015
houdini_href_e.c updated to cmark 0.22 Aug 26, 2015
houdini_html_e.c updated to cmark 0.22 Aug 26, 2015
houdini_html_u.c updated to cmark 0.28.0 Aug 20, 2017
html.c updated to cmark 0.26.1 Jul 16, 2016
inlines.c fix update to 0.28.0 Aug 21, 2017
inlines.h updated to cmark 0.26.1 Jul 16, 2016
iter.go C API Change. Jan 11, 2015
iterator.c updated to cmark 0.26.1 Jul 16, 2016
iterator.h updated to cmark 0.26.1 Jul 16, 2016
latex.c fix update to 0.28.0 Aug 21, 2017
man.c updated to cmark 0.26.1 Jul 16, 2016
node.c updated to cmark 0.28.0 Aug 20, 2017
node.go updated to cmark 0.25.2 Mar 26, 2016
node.h updated to cmark 0.26.1 Jul 16, 2016
parser.h updated to cmark 0.26.1 Jul 16, 2016
references.c updated to cmark 0.28.0 Aug 20, 2017
references.h updated to cmark 0.26.1 Jul 16, 2016
render.c updated to cmark 0.26.1 Jul 16, 2016
render.h updated to cmark 0.26.1 Jul 16, 2016
scanners.c updated to cmark 0.28.0 Aug 20, 2017
scanners.h updated to cmark 0.28.0 Aug 20, 2017
scanners.re updated to cmark 0.28.0 Aug 20, 2017
utf8.c updated to cmark 0.23.0 Dec 30, 2015
utf8.h updated to cmark 0.23.0 Dec 30, 2015
xml.c updated to cmark 0.26.1 Jul 16, 2016

README.md

go-commonmark

Build Status

Description

go-commonmark is a Go (golang) wrapper for the CommonMark C library

Installation

go get github.com/rhinoman/go-commonmark

Note: The cmark C reference implementation has been folded into this repository, no need to install it separately. It will be built automagically by cgo.

Documentation

See the Godoc: http://godoc.org/github.com/rhinoman/go-commonmark

Example Usage

If all you need is to convert CommonMark text to Html, just do this:

import "github.com/rhinoman/go-commonmark"

...

	htmlText := commonmark.Md2Html(mdText)