Sha256: 6dd98ad68ed8972d8f0ccf00f4de778d794c2aee9fe54f1bd5914c6ba82da5da

Contents?: true

Size: 622 Bytes

Versions: 4

Compression:

Stored size: 622 Bytes

Contents

require File.dirname(__FILE__) + '/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

4 entries across 4 versions & 2 rubygems

Version Path
fagiani-jekyll-0.10.1 test/test_kramdown.rb
jekyll-0.10.0 test/test_kramdown.rb
jekyll-0.9.0 test/test_kramdown.rb
jekyll-0.8.0 test/test_kramdown.rb