Ruby integration of Styledown.
# Gemfile
gem 'styledown'
API for Styledown.parse
is exactly the same as the JS version (docs).
require 'styledown'
# Passing a Styledown sting:
Styledown.parse('### hello', bare: true)
# Parsing files from disk:
Styledown.parse([
'/path/to/input.css',
'/path/to/input.md',
'...'
])
# Parsing files from elsewhere:
Styledown.parse([
{ name: "input.md", data: "### hi from md" },
{ name: "input.css", data: "/**\n * hi from css:\n * world\n */" }
])
styledown © 2014+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors.
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz