diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/extensions/test-about-render.lua | 9 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 9 insertions, 0 deletions
diff --git a/tests/extensions/test-about-render.lua b/tests/extensions/test-about-render.lua index 6644664..eb62a89 100644 --- a/tests/extensions/test-about-render.lua +++ b/tests/extensions/test-about-render.lua @@ -228,6 +228,15 @@ h.contains("dashes render an unordered list", out, "<ul><li>first</li><li>second out = render("README.md", "1. first\n2. second") h.contains("numbers render an ordered list", out, "<ol><li>first</li><li>second</li></ol>") +out = render("README.md", "- one\n wrapped\n- two") +h.contains("a wrapped item stays one item", out, "<ul><li>one\nwrapped</li><li>two</li></ul>") + +out = render("README.md", "1. step\nlazy line\n2. next") +h.contains("an unindented line carries the item on", out, "<ol><li>step\nlazy line</li><li>next</li></ol>") + +out = render("README.md", "- item\n---") +h.contains("a rule still ends the list", out, "<ul><li>item</li></ul><hr>") + out = render("README.md", "- plain\n1. numbered") h.contains("a change of marker splits the list", out, "</ul><ol>") |
