Methods

Included Modules

Class Index [+]

Quicksearch

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 344
344:       def render(text)
345:         engine = case @required
346:                  when 'rdiscount'
347:                    ::RDiscount
348:                  when 'peg_markdown'
349:                    ::PEGMarkdown
350:                  when 'maruku'
351:                    ::Maruku
352:                  when 'bluecloth'
353:                    ::BlueCloth
354:                  end
355:         engine.new(text).to_html
356:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.