Sha256: 876891468d733e6d4a0c1c8d2d190ef98588d15ec97a50823156457ce5f7f373

Contents?: true

Size: 400 Bytes

Versions: 8

Compression:

Stored size: 400 Bytes

Contents

# encoding: utf-8

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

8 entries across 8 versions & 1 rubygems

Version Path
nanoc3-3.2.4 test/filters/test_kramdown.rb
nanoc3-3.2.3 test/filters/test_kramdown.rb
nanoc3-3.2.2 test/filters/test_kramdown.rb
nanoc3-3.2.1 test/filters/test_kramdown.rb
nanoc3-3.2.0 test/filters/test_kramdown.rb
nanoc3-3.2.0b3 test/filters/test_kramdown.rb
nanoc3-3.2.0b2 test/filters/test_kramdown.rb
nanoc3-3.2.0b1 test/filters/test_kramdown.rb