Created a test to expose a bug with markdown and pygments

The error seems to stem from how markdown expects certain blocks to begin and end with a newline.
This commit is contained in:
Zachary Pinter 2009-01-11 11:41:30 -07:00
parent 94c06d0100
commit bdbf1b9383
1 changed files with 30 additions and 0 deletions

30
test/test_tags.rb Normal file
View File

@ -0,0 +1,30 @@
require File.dirname(__FILE__) + '/helper'
class TestTags < Test::Unit::TestCase
def setup
@content = <<CONTENT
---
layout: post
title: This is a test
---
This document results in a markdown error with maruku
{% highlight ruby %}
puts "hi"
puts "bye"
{% endhighlight %}
CONTENT
end
def test_markdown_with_pygments_line_handling
Jekyll.pygments = true
result = Liquid::Template.parse(@content).render({}, [Jekyll::Filters])
result = Jekyll.markdown_proc.call(result)
assert_no_match(/markdown\-html\-error/,result)
end
end