Skip to content

rhinoman/go-commonmark

Repository files navigation

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)