Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/test_syntax/blocks/test_html_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1706,3 +1706,10 @@ def test_no_hang_issue_1586(self):
'Test `<!--[if mso]>` and `<!--[if !mso]>`',
'<p>Test <code>&lt;!--[if mso]&gt;</code> and <code>&lt;!--[if !mso]&gt;</code></p>'
)

def test_mso_conditional_comments_truncate_table_content(self):
"""Content after MSO conditional comments should not be truncated."""
self.assertMarkdownRenders(
'<table>\n<!--[if mso]>-->\n<td>keep</td>\n<!--<![endif]-->\n<td>also keep</td>\n</table>\n',
'<table>\n<!--[if mso]>-->\n<td>keep</td>\n<!--<![endif]-->\n<td>also keep</td>\n</table>'
)
Loading