Methods

Included Modules

Haml::Filters::Markdown

Parses the filtered text with [Markdown](daringfireball.net/projects/markdown). Only works if [RDiscount](github.com/rtomayko/rdiscount), [RPeg-Markdown](github.com/rtomayko/rpeg-markdown), [Maruku](maruku.rubyforge.org), or [BlueCloth](www.deveiate.org/projects/BlueCloth) are installed.

Public Instance Methods

render(text) click to toggle source

@see Base#render

# File lib/haml/filters.rb, line 358
def render(text)
  engine = case @required
           when 'rdiscount'
             ::RDiscount
           when 'peg_markdown'
             ::PEGMarkdown
           when 'maruku'
             ::Maruku
           when 'bluecloth'
             ::BlueCloth
           end
  engine.new(text).to_html
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.