Module: Haml::Filters::Redcarpet

Includes:
Base
Defined in:
lib/schnitzelpress.rb

Overview

teach HAML to use RedCarpet for markdown

Instance Method Summary collapse

Instance Method Details

#render(text) ⇒ Object



66
67
68
69
70
# File 'lib/schnitzelpress.rb', line 66

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