Current section
Files
Jump to
Current section
Files
README.md
# Cmark
[](https://hex.pm/packages/cmark)
[](https://github.com/asaaki/cmark.ex/blob/master/LICENSE)
[](https://travis-ci.org/asaaki/cmark.ex)
[](https://gratipay.com/asaaki)
Elixir NIF for [libcmark](https://github.com/jgm/CommonMark), a parser library following the [CommonMark](http://commonmark.org/) 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
```elixir
{ :cmark, "~> 0.3" }
```
## Usage
```elixir
Cmark.to_html "a markdown string"
#=> "<p>a markdown string</p>\n"
```
## License
[MIT/X11](./LICENSE)