require "helper" class TestRdiscount < JekyllUnitTest context "rdiscount" do setup do if jruby? then skip( "JRuby does not perform well with CExt, test disabled." ) end config = { "markdown" => "rdiscount", "rdiscount" => { "toc_token" => "{:toc}", "extensions" => %w(smart generate_toc) } } @markdown = Converters::Markdown.new config end should "pass rdiscount extensions" do assert_equal "
“smart”
", @markdown.convert('"smart"').strip end should "render toc" do toc = <<-TOC