From 6efe0a3bcc7359169edec015458f9648bfbf41f7 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 3 May 2026 18:55:05 +0200 Subject: [PATCH] fix: link validation exclusions require empty line after code block (#618) Signed-off-by: squidfunk --- python/zensical/collectors/exclusions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/zensical/collectors/exclusions.py b/python/zensical/collectors/exclusions.py index bcfb45f..c99240e 100644 --- a/python/zensical/collectors/exclusions.py +++ b/python/zensical/collectors/exclusions.py @@ -48,8 +48,8 @@ _RE = re.compile( (?P`{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)