fix: $ at end of line breaks link validation (#659)

fix: `$` at end of line breaks link validation

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
squidfunk
2026-05-15 10:41:12 +02:00
parent 820755463d
commit b31dd1472c
2 changed files with 7 additions and 2 deletions
@@ -1672,6 +1672,11 @@ class TestMath:
assert text(md, links[0].text) == b"before"
assert text(md, links[0].href) == b"href"
def test_no_math(self) -> None:
md = b"1.000$"
refs = collect(md)
assert len(refs) == 0
# ---------------------------------------------------------------------------