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

BoldText and so on does not escape markdown special characters #20

Open
Qworel97 opened this issue Jan 20, 2021 · 0 comments
Open

BoldText and so on does not escape markdown special characters #20

Qworel97 opened this issue Jan 20, 2021 · 0 comments

Comments

@Qworel97
Copy link
Contributor

Qworel97 commented Jan 20, 2021

Imaging you have code like this

new ItalicText("*italic*")

After processing you will receive

italic

The issue is that when we pass any data that can be seen as markdown string we receive strange behaviour

.replaceAll("([*_~>#-.\\[\\]()|`])", "\\\\$1")

Something like that should do that trick, but adding it by default into BoldText and others will make user depend only on styling tools provided by library, so instead it would be nice to have possibility to write something like

new IgnoreMarkdownText("*italic*")

And receive output like

\*italic\*

Thanks in advance

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

No branches or pull requests

1 participant