fix repl_url() which was broken
This commit is contained in:
parent
d7090b836a
commit
06bc97ab77
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ def process_inline(line: str):
|
|||
|
||||
def repl_url(matchobj: re.Match):
|
||||
url, text = matchobj.groupdict().values()
|
||||
if not re.findall(r'=> (http|gemini)', url):
|
||||
if not re.findall(r'(http|gemini)', url):
|
||||
url = re.sub(r'gmi$', r'html', url)
|
||||
return f'<a href="{url}">=> {text if text else url}</a><br>\n'
|
||||
|
||||
|
|
Loading…
Reference in a new issue