made hyperlinks markdown-compatible

This commit is contained in:
vky 2022-03-22 15:22:18 +01:00
parent ef06018559
commit af73e3c3e5
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ display_element = pp.Word('!')
# Inline elements
il_link = pp.Regex(
r"""\[(?P<text>.+)\]\(['"](?P<url>[a-zA-Z-_:\/=@#!%\?\d\(\)\.]+)['"]\)"""
r"""\[(?P<text>.+)\]\(['"]?(?P<url>[a-zA-Z-_:\/=@#!%\?\d\(\)\.]+)['"]?\)"""
).add_parse_action(of_type(HyperlinkToken))
# Enhanced text elements