You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have a bunch of helpers in redbot.core.utils.chat_formatting, including those which simply return some string formatted in some way with markdown, i.e. bold, italics, inline etc. All they do now is wrap the input string in the formatting delimiters and return - people are more likely to do this by just including the delims in their raw string, since it takes up less characters and doesn't require an import.
A way to actually make these functions useful would be to have them escape any relevant markdown formatting syntax within the input string.
Feature request
Select the type of feature you are requesting:
Describe your requested feature
Currently we have a bunch of helpers in
redbot.core.utils.chat_formatting
, including those which simply return some string formatted in some way with markdown, i.e.bold
,italics
,inline
etc. All they do now is wrap the input string in the formatting delimiters and return - people are more likely to do this by just including the delims in their raw string, since it takes up less characters and doesn't require an import.A way to actually make these functions useful would be to have them escape any relevant markdown formatting syntax within the input string.
Examples
Inline
Current behaviour:
Formatted:
a string
containingbackticks
After changes:
Formatted:
a string` containing` backticks
Italics
Current behaviour:
Formatted: A string containing asterisks
After changes:
Formatted: A string* containing *asterisks
The text was updated successfully, but these errors were encountered: