Project

styledown

0.0
No commit activity in last 3 years
No release in over 3 years
...
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

Styledown

Ruby integration of Styledown.

Status

Ruby integration

# Gemfile
gem 'styledown'

Gem

Plain Ruby integration

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