diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2022-05-06 19:36:48 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2022-05-06 19:37:17 +0200 |
| commit | 629dd9784c126ddb22bf6503ae1a7c7ea548ba04 (patch) | |
| tree | cc1f47ca15b8a1a1deb25250fea9d278f9bdbd54 /helpers.py | |
| parent | b2fc9ce17d6e576198eea4808e374d1a0386a439 (diff) | |
| download | quatuorbellefeuille.com-629dd9784c126ddb22bf6503ae1a7c7ea548ba04.tar.xz | |
Tweak "touchup_plaintext" syntax for bare links
So that I can add an ad-hoc syntax for captioned links and reinvent
Markdown 🤦
Diffstat (limited to 'helpers.py')
| -rw-r--r-- | helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -137,7 +137,7 @@ def read_concerts(filename): _TOUCHUPS = ( (re.compile('([0-9])(st|nd|rd|th|er|ère|nde|ème)'), r'\1<sup>\2</sup>'), - (re.compile('(https://[^ ]+)'), r'<a href="\1" target="_blank">\1</a>'), + (re.compile('<(https?://[^ ]+)>'), r'<a href="\1" target="_blank">\1</a>'), (re.compile('([^ ]+@[^ ]+)'), r'<a href="mailto:\1">\1</a>'), ) |
