maybe fix

This commit is contained in:
Will McGugan
2025-07-15 17:24:03 +01:00
parent fb062bc787
commit 95be172bf3

View File

@@ -82,6 +82,7 @@ async def test_headings_that_look_like_they_contain_markup(text: str) -> None:
document = f"# {text}"
async with MarkdownStringViewerApp(document).run_test() as pilot:
await pilot.pause()
assert pilot.app.query_one(MD.MarkdownH1)._content == Content(text)
toc_tree = pilot.app.query_one(MD.MarkdownTableOfContents).query_one(Tree)
# The toc label looks like "I {text}" but the I is styled so we drop it.