Module: Haml::Filters::Redcarpet

Includes:
Base
Defined in:
lib/mongo_fe/application_controller.rb

Overview

teach HAML how to use RedCarpet for markdown docs

Instance Method Summary collapse

Instance Method Details

#render(text) ⇒ Object


85
86
87
88
89
# File 'lib/mongo_fe/application_controller.rb', line 85

def render(text)
  Redcarpet::Markdown.new( MongoFe::MarkdownRenderer,
    :autolink => true, :space_after_headers => true, :fenced_code_blocks => true).
    render(text)
end