Skip to content

Commit

Permalink
Add final test to cover bad headers
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Oct 11, 2024
1 parent 6a0dcef commit 062ded1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_extensions/test_blocks/test_captions.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,23 @@ def test_manual_prepend(self):
True
)

def test_bad_header(self):
"""Test a bad header."""

self.check_markdown(
R"""
Test
/// caption | bad
///
""",
"""
<p>Test
/// caption | bad
///</p>
""",
True
)


class TestBlocksCaptionPrefix(util.MdCase):
"""Test Blocks caption cases with enabled `auto`."""
Expand Down

0 comments on commit 062ded1

Please sign in to comment.