mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
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:
30
test/test_tags.rb
Normal file
30
test/test_tags.rb
Normal 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
|
||||
Reference in New Issue
Block a user