Popularity
3.4
Stable
Activity
0.0
Stable
20
1
4

Monthly Downloads: 14
Programming language: Elixir
License: MIT License
Tags: Markdown    
Latest version: v0.7.0

discount alternatives and similar packages

Based on the "Markdown" category.
Alternatively, view discount alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of discount or a related project?

Add another 'Markdown' Package

README

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](./LICENSE)

Copyright (c) 2013—2015 Christoph Grabo


*Note that all licence references and agreements mentioned in the discount README section above are relevant to that project's source code only.