Sha256: c82709c2bd08ba43456d99e7c0b7e4780abe6d5bd3c1cd2b67f2473fc82b25a9

Contents?: true

Size: 368 Bytes

Versions: 14

Compression:

Stored size: 368 Bytes

Contents

# encoding: utf-8

class Nanoc::Filters::KramdownTest < Nanoc::TestCase

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

      # Run filter
      result = filter.setup_and_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

14 entries across 14 versions & 1 rubygems

Version Path
nanoc-3.7.3 test/filters/test_kramdown.rb
nanoc-3.7.2 test/filters/test_kramdown.rb
nanoc-3.7.1 test/filters/test_kramdown.rb
nanoc-3.7.0 test/filters/test_kramdown.rb
nanoc-3.6.11 test/filters/test_kramdown.rb
nanoc-3.6.10 test/filters/test_kramdown.rb
nanoc-3.6.9 test/filters/test_kramdown.rb
nanoc-3.6.8 test/filters/test_kramdown.rb
nanoc-3.6.7 test/filters/test_kramdown.rb
nanoc-3.6.6 test/filters/test_kramdown.rb
nanoc-3.6.5 test/filters/test_kramdown.rb
nanoc-3.6.4 test/filters/test_kramdown.rb
nanoc-3.6.3 test/filters/test_kramdown.rb
nanoc-3.6.2 test/filters/test_kramdown.rb