mirror of
https://github.com/venthur/blag.git
synced 2025-11-25 20:52:43 +00:00
Added footnotes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user