Styledown v0.0.3 Styledown
Elixir integration of Styledown.
Summary
Functions
Returns the version of the bundled Styledown Javascript library
Takes a string or a list of files and returns a string parsed by the Styledown Javascript library
Functions
Returns the version of the bundled Styledown Javascript library.
Example
iex> Styledown.js_version
"1.0.1"
Takes a string or a list of files and returns a string parsed by the Styledown Javascript library.
Example
iex> Styledown.parse("### hi")
"<section class=\"sg-block sg-section-hi\">\n <h3 id=\"hi\" class=\"sg\">hi</h3>\n</section>"
Given you have directory named stylesheets
with the files app.css
and
config.md
:
Path.wildcard("stylesheets/*.{css,md}")
|> Styledown.parse
|> File.write!("styledown.html")