Sha256: e3e9dd8ae6ac420193aae844d7df4988f772b9db09c0a2462168dfd3c9102c08

Contents?: true

Size: 229 Bytes

Versions: 4

Compression:

Stored size: 229 Bytes

Contents

# encoding: utf-8

module Nanoc3::Filters
  class Kramdown < Nanoc3::Filter

    def run(content, params={})
      require 'kramdown'

      # Get result
      ::Kramdown::Document.new(content, params).to_html
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc3-3.1.0b1 lib/nanoc3/filters/kramdown.rb
nanoc3-3.1.0a3 lib/nanoc3/filters/kramdown.rb
nanoc3-3.1.0a2 lib/nanoc3/filters/kramdown.rb
nanoc3-3.1.0a1 lib/nanoc3/filters/kramdown.rb