diff --git a/content.py b/content.py index da9dc1c9e..44af0802d 100644 --- a/content.py +++ b/content.py @@ -136,6 +136,7 @@ def addWebLinks(content: str) -> str: if w.startswith('https://') or \ w.startswith('http://') or \ w.startswith('i2p://') or \ + w.startswith('gemini://') or \ w.startswith('dat://'): if w.endswith('.') or w.endswith(';'): w = w[:-1] @@ -149,8 +150,11 @@ def addWebLinks(content: str) -> str: markup += '' elif w.startswith('dat://'): markup += '' + elif w.startswith('gemini://'): + markup += '' linkText = w.replace('https://', '').replace('http://', '') linkText = linkText.replace('dat://', '').replace('i2p://', '') + linkText = linkText.replace('gemini://', '') # prevent links from becoming too long if len(linkText) > maxLinkLength: markup += '' + \