Class: Qiita::Markdown::Filters::Greenmat

Inherits:
HTML::Pipeline::TextFilter
  • Object
show all
Defined in:
lib/qiita/markdown/filters/greenmat.rb

Constant Summary collapse

DEFAULT_OPTIONS =
{
  footnotes: true,
}.freeze

Instance Method Summary collapse

Instance Method Details

#callNokogiri::HTML::DocumentFragment

Returns:

  • (Nokogiri::HTML::DocumentFragment)


10
11
12
# File 'lib/qiita/markdown/filters/greenmat.rb', line 10

def call
  Nokogiri::HTML.fragment(greenmat.render(@text))
end