Changing Message#getContentStripped
See original GitHub issueGeneral Troubleshooting
- I have checked for similar issues.
- I have updated to the latest JDA version.
- I have checked the branches or the maintainers’ PRs for upcoming features/bug fixes.
Issue
Issue Type
- Bug Report
- Feature Request
Description
At the moment does Message#getContentStripped();
remove symbols like *
if they format the text (For example *text*
becomes text
).
But sadly is that also the case when the symbol is escaped, what also makes it look weird (\*text*
becomes \text
)
Would it be possible, to change that in a way, that it won’t remove the symbols, if they are escaped.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Turns out markdown is even more complicated than I imagined. A simple state-machine won’t work because something like “`abc **x**” requires a backtracking algorithm.
I’m currently working on something that could be used here: MarkdownSanitizer. This is still a WIP class but its probably a better approach to have a dedicated state-machine for sanitizing markdown formats.