Skip to content

added escape markdown in PythonNews#1725

Merged
Xithrius merged 6 commits into
python-discord:mainfrom
Ryu1845:escape_md_news
Aug 22, 2021
Merged

added escape markdown in PythonNews#1725
Xithrius merged 6 commits into
python-discord:mainfrom
Ryu1845:escape_md_news

Conversation

@Ryu1845
Copy link
Copy Markdown
Contributor

@Ryu1845 Ryu1845 commented Aug 6, 2021

Mailing lists embeds don't escape markdown which means Dunder methods are underlined, this PR tries to fix it.
(This is my first PR sorry if I'm making something wrong)

@Xithrius Xithrius added a: backend Related to internal functionality and utilities (error_handler, logging, security, utils and core) p: 2 - normal Normal Priority t: bug Something isn't working good first issue Good for newcomers labels Aug 7, 2021
Comment thread bot/exts/info/python_news.py Outdated
The code is now almost completely different from discord.py.
@Xithrius Xithrius requested a review from Bluenix2 August 11, 2021 07:07
Copy link
Copy Markdown
Contributor

@Numerlor Numerlor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are the other chars being escaped? The docstring only mentions underlines.

With strikethrough I'd just let it apply the Markdown as that was most likely the intention
I guess spoilers are fine although I don't think they've ever shown up, and why are the backslashes being escaped?

Also, please use double quotes as stated in the style guide

Comment thread bot/exts/info/python_news.py Outdated
Comment thread bot/exts/info/python_news.py
Copy link
Copy Markdown
Contributor

@Bluenix2 Bluenix2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now according to what was specified.

Copy link
Copy Markdown
Contributor

@Xithrius Xithrius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. We can always update this if we find something new to escape.

Thanks for taking care of this, @Ryu1845!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: backend Related to internal functionality and utilities (error_handler, logging, security, utils and core) good first issue Good for newcomers p: 2 - normal Normal Priority t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants