https://github.com/jekyll/jekyll
Raw File
Tip revision: 13df72207305c0b2ebc5793f83a27feb719a9f56 authored by Tom Preston-Werner on 17 December 2010, 00:29:48 UTC
Release 0.10.0
Tip revision: 13df722
test_kramdown.rb
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
back to top