summaryrefslogtreecommitdiff
path: root/tests/test_syntax
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2020-07-01 10:08:47 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2020-07-01 10:18:28 -0400
commitbe7ba7bfa17e7cb0c795e101662d1e490334ec84 (patch)
tree15526e714d2111a1e7015cbe105c5eeda50e3908 /tests/test_syntax
parenta4b6ec9fcea353dd6f1c509ad6834aa6fd10564d (diff)
downloadpython-markdown-be7ba7bfa17e7cb0c795e101662d1e490334ec84.tar.gz
Fix HR which follows strong em.
Fixes #897.
Diffstat (limited to 'tests/test_syntax')
-rw-r--r--tests/test_syntax/blocks/test_hr.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_syntax/blocks/test_hr.py b/tests/test_syntax/blocks/test_hr.py
index 6f6cc88..009a39d 100644
--- a/tests/test_syntax/blocks/test_hr.py
+++ b/tests/test_syntax/blocks/test_hr.py
@@ -308,6 +308,22 @@ class TestHorizontalRules(TestCase):
)
)
+ def test_hr_after_emstrong(self):
+ self.assertMarkdownRenders(
+ self.dedent(
+ """
+ ***text***
+ ***
+ """
+ ),
+ self.dedent(
+ """
+ <p><strong><em>text</em></strong></p>
+ <hr />
+ """
+ )
+ )
+
def test_not_hr_2_asterisks(self):
self.assertMarkdownRenders(
'**',