diff --git a/block_test.go b/block_test.go index c9d4a88..7f8e18f 100644 --- a/block_test.go +++ b/block_test.go @@ -638,25 +638,25 @@ func TestPreformattedHtmlLax(t *testing.T) { func TestFencedCodeBlock(t *testing.T) { var tests = []string{ "``` go\nfunc foo() bool {\n\treturn true;\n}\n```\n", - "
func foo() bool {\n\treturn true;\n}\n
\n",
+ "func foo() bool {\n\treturn true;\n}\n
\n",
"``` c\n/* special & char < > \" escaping */\n```\n",
- "/* special & char < > " escaping */\n
\n",
+ "/* special & char < > " escaping */\n
\n",
"``` c\nno *inline* processing ~~of text~~\n```\n",
- "no *inline* processing ~~of text~~\n
\n",
+ "no *inline* processing ~~of text~~\n
\n",
"```\nNo language\n```\n",
"No language\n
\n",
"``` {ocaml}\nlanguage in braces\n```\n",
- "language in braces\n
\n",
+ "language in braces\n
\n",
"``` {ocaml} \nwith extra whitespace\n```\n",
- "with extra whitespace\n
\n",
+ "with extra whitespace\n
\n",
"```{ ocaml }\nwith extra whitespace\n```\n",
- "with extra whitespace\n
\n",
+ "with extra whitespace\n
\n",
"~ ~~ java\nWith whitespace\n~~~\n",
"~ ~~ java\nWith whitespace\n~~~
\n", @@ -665,7 +665,7 @@ func TestFencedCodeBlock(t *testing.T) { "~~\nonly two\n~~
\n", "```` python\nextra\n````\n", - "extra\n
\n",
+ "extra\n
\n",
"~~~ perl\nthree to start, four to end\n~~~~\n",
"~~~ perl\nthree to start, four to end\n~~~~
\n", @@ -674,7 +674,7 @@ func TestFencedCodeBlock(t *testing.T) { "~~~~ perl\nfour to start, three to end\n~~~
\n", "~~~ bash\ntildes\n~~~\n", - "tildes\n
\n",
+ "tildes\n
\n",
"``` lisp\nno ending\n",
"``` lisp\nno ending
\n", @@ -689,34 +689,34 @@ func TestFencedCodeBlock(t *testing.T) { "~~~\nmismatched begin and end\n```
\n", " ``` oz\nleading spaces\n```\n", - "leading spaces\n
\n",
+ "leading spaces\n
\n",
" ``` oz\nleading spaces\n ```\n",
- "leading spaces\n
\n",
+ "leading spaces\n
\n",
" ``` oz\nleading spaces\n ```\n",
- "leading spaces\n
\n",
+ "leading spaces\n
\n",
"``` oz\nleading spaces\n ```\n",
- "leading spaces\n
\n",
+ "leading spaces\n
\n",
" ``` oz\nleading spaces\n ```\n",
"``` oz\n
\n\nleading spaces\n ```
\n", "Bla bla\n\n``` oz\ncode blocks breakup paragraphs\n```\n\nBla Bla\n", - "Bla bla
\n\ncode blocks breakup paragraphs\n
\n\nBla Bla
\n", + "Bla bla
\n\ncode blocks breakup paragraphs\n
\n\nBla Bla
\n", "Some text before a fenced code block\n``` oz\ncode blocks breakup paragraphs\n```\nAnd some text after a fenced code block", - "Some text before a fenced code block
\n\ncode blocks breakup paragraphs\n
\n\nAnd some text after a fenced code block
\n", + "Some text before a fenced code block
\n\ncode blocks breakup paragraphs\n
\n\nAnd some text after a fenced code block
\n", "`", "`
\n", "Bla bla\n\n``` oz\ncode blocks breakup paragraphs\n```\n\nBla Bla\n\n``` oz\nmultiple code blocks work okay\n```\n\nBla Bla\n", - "Bla bla
\n\ncode blocks breakup paragraphs\n
\n\nBla Bla
\n\nmultiple code blocks work okay\n
\n\nBla Bla
\n", + "Bla bla
\n\ncode blocks breakup paragraphs\n
\n\nBla Bla
\n\nmultiple code blocks work okay\n
\n\nBla Bla
\n", "Some text before a fenced code block\n``` oz\ncode blocks breakup paragraphs\n```\nSome text in between\n``` oz\nmultiple code blocks work okay\n```\nAnd some text after a fenced code block", - "Some text before a fenced code block
\n\ncode blocks breakup paragraphs\n
\n\nSome text in between
\n\nmultiple code blocks work okay\n
\n\nAnd some text after a fenced code block
\n", + "Some text before a fenced code block
\n\ncode blocks breakup paragraphs\n
\n\nSome text in between
\n\nmultiple code blocks work okay\n
\n\nAnd some text after a fenced code block
\n", } doTestsBlock(t, tests, EXTENSION_FENCED_CODE) } @@ -978,25 +978,25 @@ func TestOrderedList_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK(t *testing.T) { func TestFencedCodeBlock_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK(t *testing.T) { var tests = []string{ "``` go\nfunc foo() bool {\n\treturn true;\n}\n```\n", - "func foo() bool {\n\treturn true;\n}\n
\n",
+ "func foo() bool {\n\treturn true;\n}\n
\n",
"``` c\n/* special & char < > \" escaping */\n```\n",
- "/* special & char < > " escaping */\n
\n",
+ "/* special & char < > " escaping */\n
\n",
"``` c\nno *inline* processing ~~of text~~\n```\n",
- "no *inline* processing ~~of text~~\n
\n",
+ "no *inline* processing ~~of text~~\n
\n",
"```\nNo language\n```\n",
"No language\n
\n",
"``` {ocaml}\nlanguage in braces\n```\n",
- "language in braces\n
\n",
+ "language in braces\n
\n",
"``` {ocaml} \nwith extra whitespace\n```\n",
- "with extra whitespace\n
\n",
+ "with extra whitespace\n
\n",
"```{ ocaml }\nwith extra whitespace\n```\n",
- "with extra whitespace\n
\n",
+ "with extra whitespace\n
\n",
"~ ~~ java\nWith whitespace\n~~~\n",
"~ ~~ java\nWith whitespace\n~~~
\n", @@ -1005,7 +1005,7 @@ func TestFencedCodeBlock_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK(t *testing.T) { "~~\nonly two\n~~
\n", "```` python\nextra\n````\n", - "extra\n
\n",
+ "extra\n
\n",
"~~~ perl\nthree to start, four to end\n~~~~\n",
"~~~ perl\nthree to start, four to end\n~~~~
\n", @@ -1014,7 +1014,7 @@ func TestFencedCodeBlock_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK(t *testing.T) { "~~~~ perl\nfour to start, three to end\n~~~
\n", "~~~ bash\ntildes\n~~~\n", - "tildes\n
\n",
+ "tildes\n
\n",
"``` lisp\nno ending\n",
"``` lisp\nno ending
\n", @@ -1029,16 +1029,16 @@ func TestFencedCodeBlock_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK(t *testing.T) { "~~~\nmismatched begin and end\n```
\n", " ``` oz\nleading spaces\n```\n", - "leading spaces\n
\n",
+ "leading spaces\n
\n",
" ``` oz\nleading spaces\n ```\n",
- "leading spaces\n
\n",
+ "leading spaces\n
\n",
" ``` oz\nleading spaces\n ```\n",
- "leading spaces\n
\n",
+ "leading spaces\n
\n",
"``` oz\nleading spaces\n ```\n",
- "leading spaces\n
\n",
+ "leading spaces\n
\n",
" ``` oz\nleading spaces\n ```\n",
"``` oz\n
\n\nleading spaces
\n\n```\n
\n",