mirror of
https://github.com/zensical/zensical.git
synced 2026-08-25 08:36:45 +00:00
fix: empty footnote ref classified as link ref (#702)
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
@@ -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"^ ",
|
||||
|
||||
Reference in New Issue
Block a user