add test cases for issue #45

This commit is contained in:
Mathias Leppich 2014-03-30 22:00:26 +02:00
parent 55bb56bf9b
commit d4c367a949

View File

@ -642,6 +642,15 @@ func TestFencedCodeBlock(t *testing.T) {
" ``` oz\nleading spaces\n ```\n", " ``` oz\nleading spaces\n ```\n",
"<pre><code>``` oz\n</code></pre>\n\n<p>leading spaces\n ```</p>\n", "<pre><code>``` oz\n</code></pre>\n\n<p>leading spaces\n ```</p>\n",
"Bla bla\n\n``` oz\ncode blocks breakup paragraphs\n```\n\nBla Bla\n",
"<p>Bla bla</p>\n\n<pre><code class=\"oz\">code blocks breakup paragraphs\n</code></pre>\n\n<p>Bla Bla</p>\n",
"Some text before a fenced code block\n``` oz\ncode blocks breakup paragraphs\n```\nAnd some text after a fenced code block",
"<p>Some text before a fenced code block</p>\n\n<pre><code class=\"oz\">code blocks breakup paragraphs\n</code></pre>\n\n<p>And some text after a fenced code block</p>\n",
"`",
"<p>`</p>\n",
} }
doTestsBlock(t, tests, EXTENSION_FENCED_CODE) doTestsBlock(t, tests, EXTENSION_FENCED_CODE)
} }