Skip to content

styledown/styledown_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Styledown Elixir

Build Status Hex.pm

Elixir integration of Styledown

Installation

def deps do
  [{:styledown, "~> 0.0.3"}]
end

Usage

iex> Styledown.parse("### hi")
"<section class=\"sg-block sg-section-hi\">\n  <h3 id=\"hi\" class=\"sg\">hi</h3>\n</section>"
Path.wildcard("stylesheets/*.{css,md}")
|> Styledown.parse
|> File.write("styledown.html")

Documentation

The documentation is available online and within the Styledown module. To build the docs locally:

$ MIX_ENV=docs mix docs

Contributing

Any contribution is welcome and appreciated. Please check the issue tracker before submitting issues and pull requests. Please ensure that the tests are passing before submitting a pull request.

$ git clone https://github.com/styledown/styledown_ex
$ cd styledown_ex
$ mix deps.get
$ mix test

License

Copyright 2016, Victor Solis. Released under the MIT license.