Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
ext/java/jar
lib
spec
.gitignore
.rvmrc
Gemfile
Gemfile.lock
README.md
Rakefile
paperwrap.gemspec

README.md

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