mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
escape double-slash commands
This commit is contained in:
parent
ff6d9454fd
commit
ea2405ab3a
@ -319,6 +319,9 @@ module.exports = React.createClass({
|
||||
if (isEmote) {
|
||||
contentText = contentText.substring(4);
|
||||
}
|
||||
else if (contentText[0] === '/') {
|
||||
contentText = contentText.substring(1);
|
||||
}
|
||||
|
||||
var htmlText;
|
||||
if (this.markdownEnabled && (htmlText = mdownToHtml(contentText)) !== contentText) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user