diff --git a/src/MdToHtmlTest.hs b/src/MdToHtmlTest.hs
index 963abd8..55cfd5d 100644
--- a/src/MdToHtmlTest.hs
+++ b/src/MdToHtmlTest.hs
@@ -70,7 +70,10 @@ unorderedListTests =
check_equal "Mixing list indicators" "
" (convert "* Item 1\n+ Item 2\n- Item 3"),
check_equal "Formatted lists" "" (convert "* __Item 1__\n+ _Item 2_\n- ***Item 3***"),
check_equal "Nested list" "" (convert "* Item 1\n* Item 2\n* Item 3\n * Subitem 1\n * Subitem 2"),
- check_equal "Paragraph in list" "- Item 1
Item 2
More stuff
- Item 3
" (convert "- Item 1\n- Item 2\n\n More stuff\n\n- Item 3")
+ check_equal "Paragraph in list" "- Item 1
Item 2
More stuff
- Item 3
" (convert "- Item 1\n- Item 2\n\n More stuff\n\n- Item 3"),
+ check_equal "Paragraph before list" "This is a list
" (convert "This is a list\n\n* Item 1\n* Item 2"),
+ check_equal "Paragraph before list" "This is a list
" (convert "### This is a list\n\n* Item 1\n* Item 2"),
+ check_equal "Nested list then back" "" (convert "- Item 1\n- Item 2\n - Item 3\n - Item 4\n- Item 5")
]
integrationTests =
@@ -80,13 +83,28 @@ integrationTests =
check_equal "Integration 3" "Hello
World
" (convert "# Hello\nWorld"),
check_equal "Integration 4" "a b
" (convert "a\nb"),
check_equal "Integration 5" "Hello
" (convert "# Hello\n"),
- check_equal "Integration 6" "First line
Second line
" (convert "First line \nSecond line")
+ check_equal "Integration 6" "First line
Second line
" (convert "First line \nSecond line"),
+ check_equal
+ "Integration 7"
+ "Sample Markdown
This is some basic, sample markdown.
Second \
+ \Heading
- Unordered lists, and:
- More
Blockquote
\
+ \
And bold, italics, and even italics \
+ \and later bold. Even strikethrough. \
+ \A link to somewhere.
"
+ ( convert
+ "# Sample Markdown\n\nThis is some basic, sample markdown.\n\n## Second \
+ \Heading\n\n- Unordered lists, and:\n - One\n - Two\n - Three\n\
+ \- More\n\n> Blockquote\n\nAnd **bold**, *italics*, and even *italics and \
+ \later **bold***. Even ~~strikethrough~~. [A link](https://markdowntohtml.com) to somewhere."
+ )
]
tests =
TestList
[ headerTests,
boldTests,
+ strikethroughTests,
linkTests,
escapedCharTests,
blockquoteTests,