diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_syntax/blocks/test_headers.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_syntax/blocks/test_headers.py b/tests/test_syntax/blocks/test_headers.py index 38cae83..d9392e1 100644 --- a/tests/test_syntax/blocks/test_headers.py +++ b/tests/test_syntax/blocks/test_headers.py @@ -708,3 +708,23 @@ class TestHashHeaders(TestCase): """ ) ) + + def test_escaped_hash(self): + self.assertMarkdownRenders( + "### H3 \\###", + self.dedent( + """ + <h3>H3 #</h3> + """ + ) + ) + + def test_unescaped_hash(self): + self.assertMarkdownRenders( + "### H3 \\\\###", + self.dedent( + """ + <h3>H3 \\</h3> + """ + ) + ) |