Module: Haml::Filters::Markdown
- Includes:
- Base
- Defined in:
- lib/haml/filters.rb
Overview
Instance Method Summary collapse
Methods included from Base
#compile, included, #internal_compile, #lazy_require, #render_with_options
Instance Method Details
#render(text)
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 |
# File 'lib/haml/filters.rb', line 359
def render(text)
engine = case @required
when 'rdiscount'
::RDiscount
when 'peg_markdown'
::PEGMarkdown
when 'maruku'
::Maruku
when 'bluecloth'
::BlueCloth
when 'kramdown'
::Kramdown::Document
end
engine.new(text).to_html
end
|