1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

Added footnotes

This commit is contained in:
Bastian Venthur
2025-11-04 09:06:47 +01:00
parent f07341a6be
commit 0d7c9b3153
5 changed files with 24 additions and 0 deletions

View File

@@ -111,3 +111,17 @@ this --- is -- a test ...
assert "mdash" not in html
assert "ndash" not in html
assert "hellip" not in html
def test_footnotes() -> None:
"""Test footnote extension."""
md = markdown_factory()
md1 = """
this is a footnote[^1]
[^1]: this is the footnotetext
"""
html, meta = convert_markdown(md, md1)
assert "<hr>" in html
assert "<ol>" in html
assert "footnotetext" in html