Sha256: a5cf83d127ff552ff1f2f592f18a68142f3b30239d7f126fb0f2bdb0349fd38a

Contents?: true

Size: 397 Bytes

Versions: 15

Compression:

Stored size: 397 Bytes

Contents

# encoding: utf-8

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

  include Nanoc::TestHelpers

  def test_filter
    if_have 'kramdown' do
      # Create filter
      filter = ::Nanoc::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

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-3.5.0 test/filters/test_kramdown.rb
nanoc-3.5.0b2 test/filters/test_kramdown.rb
nanoc-3.5.0b1 test/filters/test_kramdown.rb
nanoc-3.4.3 test/filters/test_kramdown.rb
nanoc-3.4.2 test/filters/test_kramdown.rb
nanoc-3.4.1 test/filters/test_kramdown.rb
nanoc-3.4.0 test/filters/test_kramdown.rb
nanoc-3.3.7 test/filters/test_kramdown.rb
nanoc-3.3.6 test/filters/test_kramdown.rb
nanoc-3.3.5 test/filters/test_kramdown.rb
nanoc-3.3.4 test/filters/test_kramdown.rb
nanoc-3.3.3 test/filters/test_kramdown.rb
nanoc-3.3.2 test/filters/test_kramdown.rb
nanoc-3.3.1 test/filters/test_kramdown.rb
nanoc-3.3.0 test/filters/test_kramdown.rb