Added passing tests for #616
This commit is contained in:
parent
a05b9159d9
commit
e2affb2257
|
@ -32,6 +32,7 @@ title: This is a test
|
||||||
This document results in a markdown error with maruku
|
This document results in a markdown error with maruku
|
||||||
|
|
||||||
{% highlight text %}#{code}{% endhighlight %}
|
{% highlight text %}#{code}{% endhighlight %}
|
||||||
|
{% highlight text linenos %}#{code}{% endhighlight %}
|
||||||
CONTENT
|
CONTENT
|
||||||
create_post(content, override)
|
create_post(content, override)
|
||||||
end
|
end
|
||||||
|
@ -80,9 +81,13 @@ CONTENT
|
||||||
assert_no_match /markdown\-html\-error/, @result
|
assert_no_match /markdown\-html\-error/, @result
|
||||||
end
|
end
|
||||||
|
|
||||||
should "render markdown with pygments line handling" do
|
should "render markdown with pygments" do
|
||||||
assert_match %{<pre><code class='text'>test\n</code></pre>}, @result
|
assert_match %{<pre><code class='text'>test\n</code></pre>}, @result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
should "render markdown with pygments with line numbers" do
|
||||||
|
assert_match %{<pre><code class='text'><span class='lineno'>1</span> test\n</code></pre>}, @result
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "post content has highlight with file reference" do
|
context "post content has highlight with file reference" do
|
||||||
|
|
Loading…
Reference in New Issue