Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Keep counting across a split ordered list
Diffstat (limited to 'tests/extensions')
| -rw-r--r-- | tests/extensions/test-about-render.lua | 7 |
1 file changed, 7 insertions, 0 deletions
diff --git a/tests/extensions/test-about-render.lua b/tests/extensions/test-about-render.lua index feb1a68..95e95bb 100644 --- a/tests/extensions/test-about-render.lua +++ b/tests/extensions/test-about-render.lua @@ -307,6 +307,13 @@ 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", "1. first\n\n2. second\n\n3. third") +h.contains("a list split by blank lines keeps counting", out, + "<ol><li>first</li></ol><ol start='2'><li>second</li></ol><ol start='3'><li>third</li></ol>") + +out = render("README.md", "07) seventh\n08) eighth") +h.contains("a list that opens past one starts there", out, "<ol start='7'><li>seventh</li><li>eighth</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>") |
