Skip to content

Commit

Permalink
Fixed links not correctly formatted in embed
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko259 committed Sep 14, 2024
1 parent fa6b6a2 commit eee2b8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpers/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def event_description(description: str) -> str:
# Create markdown of the description, except img tag and trim the result.
markdown = md(description, strip=['img']).strip()

# Remove or replace backslashes
markdown = markdown.replace('\\', '') # Remove backslashes

# If there's more than two newlines, replace them with two, this removes excessive newlines from last step
markdown = re.sub('\n\n(\n)*', '\n\n', markdown)

Expand Down

0 comments on commit eee2b8e

Please sign in to comment.