Rails Markdown Handler
Adds markdown template handling to rails using the
Redcarpet gem.
RailsMarkdownHandler will also parses ERB and embeded HTML.
Installation
gem "rails_markdown_handler"
$ bundle install
Usage
# app/config/routes.rb
get "/example", to: "pages#example"
# app/controllers/pages_controller.rb
class PagesController < ApplicationController
def example
end
end
app/views/pages/example.md
## This is an example
Configuration
You can configure the redcarpet renderer using an initializer.
# app/config/initializers/markdown.rb
RailsMarkdownHandler.configure do |config|
config[:autolink] = false
end