Class: Henshin::MarukuPlugin
- Defined in:
- lib/henshin/plugins/maruku.rb
Instance Attribute Summary
Attributes inherited from Plugin
#config, #extensions, #priority
Instance Method Summary collapse
- #generate(content) ⇒ Object
-
#initialize(site) ⇒ MarukuPlugin
constructor
A new instance of MarukuPlugin.
Methods inherited from Plugin
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 |