Tilt::Rdoc::Markdown
Tilt extension to render Markdown using RDoc
Installation
Add this line to your application's Gemfile:
gem 'tilt-rdoc-markdown'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tilt-rdoc-markdown
Usage
require 'tilt'
require 'tilt/rdoc/markdown'
template = Tilt.new('views/hello.md')
#=> #<Tilt::RDoc::Markdown>
output = template.render
#=> "<h1>Hello, World!</h1>"
See tilt usage for more info.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request