Discount.ex
Elixir NIF for discount, a Markdown parser (GH: Orc/discount).
Add
{ :discount, "~> 0.6.1" }
Test
make test
Use
make
iex -S mix
Discount.to_html "## markdown string"
#=> "<h2>markdown string</h2>"
# Alternatively pass the compiled document to a function:
Discount.to_html "## markdown string", fn (html) ->
do_something_with(html)
end
See test examples for more detailed usage.
License
Copyright (c) 2013—2014 Christoph Grabo