Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.47 KB

Readme.md

File metadata and controls

56 lines (38 loc) · 1.47 KB

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