Class: Henshin::MarukuPlugin

Inherits:
Generator show all
Defined in:
lib/henshin/plugins/maruku.rb

Instance Attribute Summary

Attributes inherited from Plugin

#config, #extensions, #priority

Instance Method Summary collapse

Methods inherited from Plugin

#<=>, subclasses

Constructor Details

#initialize(site) ⇒ MarukuPlugin

Returns a new instance of MarukuPlugin.



6
7
8
9
10
11
# File 'lib/henshin/plugins/maruku.rb', line 6

def initialize(site)
  @extensions = {:input => ['markdown', 'mkdwn', 'md'],
                 :output => 'html'}
  @config = {}
  @priority = 5
end

Instance Method Details

#generate(content) ⇒ Object



13
14
15
# File 'lib/henshin/plugins/maruku.rb', line 13

def generate( content )
  Maruku.new(content).to_html
end