Trying to fix a bug where a header with a newline isn't recognized as a header
This commit is contained in:
@@ -28,8 +28,9 @@ boldTests = TestList
|
||||
|
||||
integrationTests = TestList
|
||||
[
|
||||
check_equal "Integration 1" "<h1>Sample Markdown</h1><p>This is some basic, sample markdown.</p><h2><b>Second</b> <i>Heading</i></h2>" (convert "# Sample Markdown\n\n This is some basic, sample markdown.\n\n ## __Second__ _Heading_")
|
||||
-- Add a test for single-newlines.
|
||||
check_equal "Integration 1" "<h1>Sample Markdown</h1><p>This is some basic, sample markdown.</p><h2><b>Second</b> <i>Heading</i></h2>" (convert "# Sample Markdown\n\n This is some basic, sample markdown.\n\n ## __Second__ _Heading_"),
|
||||
check_equal "Integration 2" "<p><b>Hello</b> <i>World</i></p>" (convert "__Hello__\n_World_"),
|
||||
check_equal "Integration 3" "<h1>Hello</h1><p>WorldM/p>" (convert "# Hello\nWorld")
|
||||
]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user