Project

paperwrap

0.0
No commit activity in last 3 years
No release in over 3 years
A JRuby wrapper around [MarkdownPapers](https://github.com/lruiz/MarkdownPapers).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0.2.0
 Project Readme

Paperwrap

A JRuby wrapper around the MarkdownPapers Java library.

This wrapper was created so it could be used as a Markdown processor in the rocco documentation library.

Usage

# get some Markdown text
markdown_file = "" # file with markdown
markdown_text = File.open(markdown_file).read

# create the processor
m = Paperwrap::Markdown.new markdown_text

# generate HTML
html = m.to_html

# save it
File.open('sample.html', 'w') do |fh|
  fh.write html
end