mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
Add a few more CDATA tests
This commit is contained in:
parent
594d923645
commit
f5ac2ddf7a
|
@ -1544,6 +1544,27 @@ func TestCDATA(t *testing.T) {
|
|||
|
||||
"Lots of text\n\n<![CDATA[lots of te><t\non\nseveral\nlines]]>\n",
|
||||
"<p>Lots of text</p>\n\n<![CDATA[lots of te><t\non\nseveral\nlines]]>\n",
|
||||
|
||||
"<![CDATA[>]]>\n",
|
||||
"<![CDATA[>]]>\n",
|
||||
}
|
||||
doTestsBlock(t, tests, 0)
|
||||
doTestsBlock(t, []string{
|
||||
"``` html\n<![CDATA[foo]]>\n```\n",
|
||||
"<pre><code class=\"language-html\"><![CDATA[foo]]>\n</code></pre>\n",
|
||||
|
||||
"<![CDATA[\n``` python\ndef func():\n pass\n```\n]]>\n",
|
||||
"<![CDATA[\n``` python\ndef func():\n pass\n```\n]]>\n",
|
||||
|
||||
`<![CDATA[
|
||||
> def func():
|
||||
> pass
|
||||
]]>
|
||||
`,
|
||||
`<![CDATA[
|
||||
> def func():
|
||||
> pass
|
||||
]]>
|
||||
`,
|
||||
}, EXTENSION_FENCED_CODE)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user