Skip to content

Commit

Permalink
Merge pull request #91 from Vatsim-Scandinavia/feature/training-roles
Browse files Browse the repository at this point in the history
Fixed links not correctly formatted in embed
  • Loading branch information
Marko259 authored Sep 14, 2024
2 parents e19fc2d + eee2b8e commit d5f5ed5
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 d5f5ed5

Please sign in to comment.