Markdown::Scaffold
Scaffold for Markdown.
Installation
Add this line to your application's Gemfile:
# Markdown
gem 'markdown-scaffold'
And then execute:
bundle
Usage
Generate
rails g markdown:scaffold
----------
create app/assets/stylesheets/pygments.css
create app/models/html_with_pygments.rb
insert app/controllers/application_controller.rb
----------
View
- erb
<%=raw show_markdown("markdown_text") %>
- haml
=raw show_markdown("markdown_text")
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