escape double-slash commands

pull/21833/head
Matthew Hodgson 2015-12-22 00:57:57 +00:00
parent ff6d9454fd
commit ea2405ab3a
1 changed files with 3 additions and 0 deletions

View File

@ -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) {