Elixir NIF for cmark (C), a parser library following the CommonMark spec.
A strongly defined, highly compatible specification of Markdown
For more information visit http://commonmark.org/.
You need a C compiler like gcc
or clang
.
Add this to your dependencies:
{:cmark, "~> 0.7"}
Cmark.to_html "a markdown string"
#=> "<p>a markdown string</p>\n"
More detailed documentation at http://hexdocs.pm/cmark/.
Cmark.to_html/1
Cmark.to_html/2
Cmark.to_html/3
Cmark.to_html_each/2
Cmark.to_html_each/3
Cmark.to_xml/1
Cmark.to_xml/2
Cmark.to_xml/3
Cmark.to_xml_each/2
Cmark.to_xml_each/3
Cmark.to_man/1
Cmark.to_man/2
Cmark.to_man/3
Cmark.to_man_each/2
Cmark.to_man_each/3
Cmark.to_commonmark/1
Cmark.to_commonmark/2
Cmark.to_commonmark/3
Cmark.to_commonmark_each/2
Cmark.to_commonmark_each/3
Cmark.to_latex/1
Cmark.to_latex/2
Cmark.to_latex/3
Cmark.to_latex_each/2
Cmark.to_latex_each/3
Latest API docs can be found at: http://hexdocs.pm/cmark/Cmark.html
- Cmark.ex: LICENSE (MIT)
- cmark (C): c_src/COPYING (multiple)