diff --git a/src/backend/html_markdown.py b/src/backend/html_markdown.py index 6176d1b2..b7234d69 100644 --- a/src/backend/html_markdown.py +++ b/src/backend/html_markdown.py @@ -151,7 +151,7 @@ class HTMLProcessor: if isinstance(r, str) else r for r in [ # Normal :// URLs (r"(?P[a-z\d]+://(?P[a-z\d._-]+(?:\:\d+)?)" - r"(?:/[/\-.,\w#%&?:;=~!$*+^@]*)?(?:\([/\-_.,a-z\d#%&?;=~]*\))?)"), + r"(?:/[/\-.,\w#%&?:;=~!$*+^@']*)?(?:\([/\-_.,a-z\d#%&?;=~]*\))?)"), # mailto: and tel: r"mailto:(?P[a-z0-9._-]+@(?P[a-z0-9.:-]*[a-z\d]))",