| Module | Haml::Filters::Markdown |
| In: |
lib/haml/filters.rb
|
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.
@see Base#render
# File lib/haml/filters.rb, line 318
318: def render(text)
319: engine = case @required
320: when 'rdiscount'
321: ::RDiscount
322: when 'peg_markdown'
323: ::PEGMarkdown
324: when 'maruku'
325: ::Maruku
326: when 'bluecloth'
327: ::BlueCloth
328: end
329: engine.new(text).to_html
330: end