fix: link validation exclusions require empty line after code block (#618)

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
squidfunk
2026-05-03 18:55:05 +02:00
parent 814d2e9edf
commit 6efe0a3bcc
+2 -2
View File
@@ -48,8 +48,8 @@ _RE = re.compile(
(?P<fence>`{3,}|~{3,}) # Capture fence character and length
[^\n]*\n # Optional info string
.*? # Block content
^(?P=indent)(?P=fence) # Closing fence must match indent + fence
[^\n]*$ # Optional trailing content
^[ \t]*(?P=fence)[`~]* # Closing fence: same type, at least as long
[^\n]*(\n|$) # Optional trailing content
)
|
# HTML comments (block and inline)