diff options
| author | Isaac Muse <faceless.shop@gmail.com> | 2020-10-21 11:09:14 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-21 13:09:14 -0400 |
| commit | 2a883a2931fd9cec63ec245c080760a15460a72c (patch) | |
| tree | 9a1d1e0f92c5774afc456f582130d95fd2815c86 /tests | |
| parent | 6b6cd8bc2f0a870ed309f8b8036492af535e75a1 (diff) | |
| download | python-markdown-2a883a2931fd9cec63ec245c080760a15460a72c.tar.gz | |
Ensure when tag text is None that it is converted to empty string
Fixes #1049
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_syntax/extensions/test_md_in_html.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test_syntax/extensions/test_md_in_html.py b/tests/test_syntax/extensions/test_md_in_html.py index 946e922..865007f 100644 --- a/tests/test_syntax/extensions/test_md_in_html.py +++ b/tests/test_syntax/extensions/test_md_in_html.py @@ -390,6 +390,24 @@ class TestMdInHTML(TestCase): ) ) + def test_empty_tags(self): + self.assertMarkdownRenders( + self.dedent( + """ + <div markdown="1"> + <div></div> + </div> + """ + ), + self.dedent( + """ + <div> + <div></div> + </div> + """ + ) + ) + def test_orphan_end_tag_in_raw_html(self): self.assertMarkdownRenders( self.dedent( |
