Sha256: 06df862b4faf9799aa7e72ab1bbaf9b495ad5b7fa860e1b6ecd395ec520871eb

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 Bytes

Contents

# encoding: utf-8

require 'test/helper'

class Nanoc3::Filters::KramdownTest < MiniTest::Unit::TestCase

  include Nanoc3::TestHelpers

  def test_filter
    if_have 'kramdown' do
      # Create filter
      filter = ::Nanoc3::Filters::Kramdown.new

      # Run filter
      result = filter.run("This is _so_ **cool**!")
      assert_equal("<p>This is <em>so</em> <strong>cool</strong>!</p>\n", result)
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nanoc3-3.1.9 test/filters/test_kramdown.rb
nanoc3-3.1.8 test/filters/test_kramdown.rb
nanoc3-3.2.0a4 test/filters/test_kramdown.rb