all repos — grayfriday @ d4c367a949cd944e160b5fe17fcbdd347523a16c

blackfriday fork with a few changes

add test cases for issue #45
Mathias Leppich mleppich@muhqu.de
Sun, 30 Mar 2014 22:00:26 +0200
commit

d4c367a949cd944e160b5fe17fcbdd347523a16c

parent

55bb56bf9b0fd106c6a7b6f89123fbf435bd8e50

1 files changed, 9 insertions(+), 0 deletions(-)

jump to
M block_test.goblock_test.go

@@ -642,6 +642,15 @@ "<pre><code class=\"oz\">leading spaces\n</code></pre>\n",

" ``` oz\nleading spaces\n ```\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) }