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
We have a problem by sending chat message with special characters like _, * etc.
By sending messages, the markdown parser doesn't offer the escape opportunity to present some special character like _, etc..
For example , we want send a normal message with a word like "Bla_bla_123" in italic:
We expect to show as Bla_bla_123,
but rocket chat shows the message like Bla_bla_123_ .
// Support _text_ to make italics
msg = msg.replace(/(^|>|[ >*~`])\_([^\_\r\n]+)\_([<*~`]|\B|\b|$)/gm, '$1<span class="copyonly">_</span><em>$2</em><span class="copyonly">_</span>$3');
Is there any possibility to handle this problem?
The text was updated successfully, but these errors were encountered:
Yes, I'm also missing a general way to escape all Markdown special characters. GitHub allows this by prefixing any special characters with a backslash. For example:
_test_ becomes test \_test\_ becomes _test_
\`\`\` becomes ```
We have a problem by sending chat message with special characters like _, * etc.
By sending messages, the markdown parser doesn't offer the escape opportunity to present some special character like _, etc..
For example , we want send a normal message with a word like "Bla_bla_123" in italic:
We expect to show as
Bla_bla_123,
but rocket chat shows the message like
Bla_bla_123_ .
Reference see following code on https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/rocketchat-markdown/markdown.js line 31:
Is there any possibility to handle this problem?
The text was updated successfully, but these errors were encountered: