Class: Flue::MarkdownFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/flue/content_filter.rb

Instance Method Summary collapse

Instance Method Details

#call(input, options = {}) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/flue/content_filter.rb', line 13

def call(input, options={})
  maruku = Maruku.new(input)
  if options[:partial]
    maruku.to_html
  else
    maruku.to_html_document
  end
end