Cmark
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.3" }
Usage
Cmark.to_html "a markdown string"
#=> "<p>a markdown string</p>\n"