diff --git a/content.py b/content.py
index a4bcb9e8..2496f913 100644
--- a/content.py
+++ b/content.py
@@ -44,7 +44,11 @@ def addWebLinks(content: str) -> str:
markup+='https://'
elif w.startswith('http://'):
markup+='http://'
- markup+=''+w.replace('https://','').replace('http://','')+''
+ linkText=w.replace('https://','').replace('http://','')
+ # prevent links from becoming too long
+ if len(linkText)>50:
+ linkText=linkText[:50]
+ markup+=''+linkText+''
replaceDict[w]=markup
for url,markup in replaceDict.items():
content=content.replace(url,markup)