mirror of
https://github.com/zensical/zensical.git
synced 2026-08-28 10:06:38 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user