Skip to content

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

Description

@Qworel97

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions