mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
Added test for backslash line break
This commit is contained in:
parent
68a3c498f6
commit
58c4ddd431
|
@ -332,10 +332,34 @@ func TestLineBreak(t *testing.T) {
|
|||
"this line \ndoes not\n",
|
||||
"<p>this line\ndoes not</p>\n",
|
||||
|
||||
"this line\\\ndoes not\n",
|
||||
"<p>this line\\\ndoes not</p>\n",
|
||||
|
||||
"this line\\ \ndoes not\n",
|
||||
"<p>this line\\\ndoes not</p>\n",
|
||||
|
||||
"this has an \nextra space\n",
|
||||
"<p>this has an<br />\nextra space</p>\n",
|
||||
}
|
||||
doTestsInline(t, tests)
|
||||
|
||||
tests = []string{
|
||||
"this line \nhas a break\n",
|
||||
"<p>this line<br />\nhas a break</p>\n",
|
||||
|
||||
"this line \ndoes not\n",
|
||||
"<p>this line\ndoes not</p>\n",
|
||||
|
||||
"this line\\\nhas a break\n",
|
||||
"<p>this line<br />\nhas a break</p>\n",
|
||||
|
||||
"this line\\ \ndoes not\n",
|
||||
"<p>this line\\\ndoes not</p>\n",
|
||||
|
||||
"this has an \nextra space\n",
|
||||
"<p>this has an<br />\nextra space</p>\n",
|
||||
}
|
||||
doTestsInlineParam(t, tests, EXTENSION_BACKSLASH_LINE_BREAK, 0, HtmlRendererParameters{})
|
||||
}
|
||||
|
||||
func TestInlineLink(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user