fix: empty footnote ref classified as link ref (#702)

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
squidfunk
2026-05-22 09:18:13 +02:00
parent 7d2178a8a9
commit 8b7e29e672
2 changed files with 5 additions and 8 deletions
@@ -1389,6 +1389,11 @@ class TestFootnoteReferences:
@pytest.mark.parametrize(
("md", "expected_id"),
[
pytest.param(
b"[^]",
b"",
id="footnote-ref-empty-id",
),
pytest.param(
b"[^1]",
b"1",
@@ -1419,11 +1424,6 @@ class TestFootnoteReferences:
@pytest.mark.parametrize(
("md", "expected_id"),
[
pytest.param(
b"[^]",
b"^",
id="link-ref",
),
pytest.param(
b"[^ ]",
b"^ ",