Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "escape formatting symbols for discord publisher" #1753

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

Masterjun3
Copy link
Collaborator

@Masterjun3 Masterjun3 commented Jan 26, 2024

This reverts commit df97a92. The commit implemented a very simple way of escaping by simply putting a backslash in front of every character allowing custom formatting.

The reason for this revert is a bug in Discord Markdown formatting:
Inside masked links, instead of hiding the escape backslashes like everywhere else, it instead shows them.
There is no way to prevent formatting inside masked links.

image

I reported a bug to Discord using their bug report tool. I also looked around in different places and it seems they keep this bug for "security reasons" discord/discord-api-docs#6185 (comment) , even if all other Markdowns do it right.

For example it works in GitHub Markdown:
*format* -> format
\*escaped\* -> *escaped*
[*format*](http://a.b) -> format
[\*wtfdiscord\*](http://a.b) -> *wtfdiscord*

@adelikat adelikat merged commit 711e76c into main Jan 27, 2024
1 check passed
@adelikat adelikat deleted the revert-discord-escape-symbols branch January 27, 2024 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants