Cmark

Hex.pm package version Hex.pm package license Build Status (master) Support via Gratipay

Elixir NIF for libcmark, a parser library following the CommonMark spec.

Install

Prerequisites

You need make (mostly present) and cmake (maybe not present, please install first).

If you want to run the specs, also python needs to be installed.

mix.exs

{ :cmark, "~> 0.4" }

Usage

Cmark.to_html "a markdown string"
#=> "<p>a markdown string</p>\n"

License

MIT/X11