summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-01-25 21:13:17 -0500
committerenahum <nahumhbl@gmail.com>2017-01-25 23:13:17 -0300
commit57d9d0ad1ee3e841640d74fcb122516bce8efd9a (patch)
treec5d47d254de7242bfbe570da05e192fe9f3861f6
parent78ca99969262343daa29952c45216e9e801a6045 (diff)
downloadchat-57d9d0ad1ee3e841640d74fcb122516bce8efd9a.tar.gz
chat-57d9d0ad1ee3e841640d74fcb122516bce8efd9a.tar.bz2
chat-57d9d0ad1ee3e841640d74fcb122516bce8efd9a.zip
Disabled mangling of email addresses in markdown autolinks (#5192)
-rw-r--r--webapp/utils/markdown.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx
index 9d4fdcb2e..c84df0fa5 100644
--- a/webapp/utils/markdown.jsx
+++ b/webapp/utils/markdown.jsx
@@ -252,7 +252,8 @@ export function format(text, options = {}) {
renderer: new MattermostMarkdownRenderer(null, options),
sanitize: true,
gfm: true,
- tables: true
+ tables: true,
+ mangle: false
};
return marked(text, markdownOptions);