devcenter-parser
Markdown parser used by Heroku Dev Center.
Usage:
require 'devcenter-parser'
md = '[Dev Center](https://devcenter.heroku.com)'
DevcenterParser.to_html(md)
# => "<p><a href=\"https://devcenter.heroku.com\">Dev Center</a></p>"
It supports GitHub flavored markdown plus a few enhancements and sanitizes the output.
Test:
$ bundle exec rake
License
See the LICENSE file included in the distribution.
Release a new version
- Update the
lib/version.rb
file and commit - Ensure you that you are an owner on the gem's RubyGems page
rake release
- Profit
Copyright
Copyright (C) 2013 Heroku [email protected].