Class: Nanoc::OrgMode::Filter

Inherits:
Filter
  • Object
show all
Defined in:
lib/nanoc/org_mode/filter.rb

Instance Method Summary collapse

Instance Method Details

#run(content, _params = {}) ⇒ String

Runs the content through [Org Mode](orgmode.org/) via [org-ruby](github.com/wallyqs/org-ruby).

Parameters:

  • content (String)

    The content to filter

Returns:

  • (String)

    The filtered content



14
15
16
# File 'lib/nanoc/org_mode/filter.rb', line 14

def run(content, _params = {})
  ::Orgmode::Parser.new(content).to_html
end