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:
parent
94c06d0100
commit
bdbf1b9383
|
@ -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
|
Loading…
Reference in New Issue