Sha256: 6889bf4f5aecacc3bfd8cefccf2127c9e10c9a98444c169400e14c099aebb4cc

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

require 'henshin/plugin'
require 'maruku'

class MarukuPlugin < Henshin::HTMLGenerator
  
  attr_accessor :extensions, :config
  
  Defaults = {}
  
  def initialize( override={} )
    @extensions = ['markdown', 'mkdwn', 'md']
    @config = Defaults.merge(override)
  end
  
  def generate( content )
    Maruku.new(content).to_html
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
henshin-0.1.3 lib/henshin/plugins/maruku.rb
henshin-0.1.2 lib/henshin/plugins/maruku.rb
henshin-0.0.1 lib/henshin/plugins/maruku.rb