Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - asaaki/discount.ex: Elixir NIF for discount, a Markdown parser

Elixir NIF for discount, a Markdown parser. Contribute to asaaki/discount.ex development by creating an account on GitHub.

Visit SiteGitHub - asaaki/discount.ex: Elixir NIF for discount, a Markdown parser

GitHub - asaaki/discount.ex: Elixir NIF for discount, a Markdown parser

Elixir NIF for discount, a Markdown parser. Contribute to asaaki/discount.ex development by creating an account on GitHub.

Powered by 0x5a.live 💗

Discount.ex

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

Elixir NIF for discount, a Markdown parser (GH: Orc/discount).


I recommend to use a strongly specified implementation of Markdown called CommonMark!

An Elixir library exists at GitHub: asaaki/cmark.ex, the Hex package at https://hex.pm/packages/cmark.

More about the reason can be read at http://commonmark.org/.


Add dependency (with hex)

{ :discount, "~> 0.7" }

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

License

MIT/X11

Copyright (c) 2013—2015 Christoph Grabo

Elixir Resources

are all listed below.

Resources

listed to get explored on!!

Made with ❤️

to provide different kinds of informations and resources.