Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 862 Bytes

README.md

File metadata and controls

40 lines (23 loc) · 862 Bytes

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)