Sha256: 2904df1ffaf6249a462cd02908d46c07427aa54a9fb419c1c6b2085c0c6a4472

Contents?: true

Size: 596 Bytes

Versions: 9

Compression:

Stored size: 596 Bytes

Contents

require 'helper'

class TestKramdown < Test::Unit::TestCase
  context "kramdown" do
    setup do
      config = {
        'markdown' => 'kramdown',
        'kramdown' => {
          'auto_ids'      => false,
          'footnote_nr'   => 1,
          'entity_output' => 'as_char',
          'toc_levels'    => '1..6'
        }
      }
      @markdown = MarkdownConverter.new config
    end

    # http://kramdown.rubyforge.org/converter/html.html#options
    should "pass kramdown options" do
      assert_equal "<h1>Some Header</h1>", @markdown.convert('# Some Header #').strip
    end
  end
end

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
jekyll-reloaded-0.12.2 test/test_kramdown.rb
jekyll-reloaded-0.12.1 test/test_kramdown.rb
jekyll-reloaded-0.12 test/test_kramdown.rb
spinto-jekyll-0.11.2.3 test/test_kramdown.rb
spinto-jekyll-0.11.2.2 test/test_kramdown.rb
spinto-jekyll-0.11.2.1 test/test_kramdown.rb
jekyll-0.11.2 test/test_kramdown.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/jekyll-0.11.0/test/test_kramdown.rb
jekyll-0.11.0 test/test_kramdown.rb