diff options
author | Corey Hulen <corey@hulen.com> | 2016-02-03 10:43:20 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-02-03 10:43:20 -0800 |
commit | 9bba6c79882d1f5d14b98052caf59a11fc2388d5 (patch) | |
tree | 0f9843dae7394ced808d2b131233eac139ef8725 /web/react/utils | |
parent | 6769969051fdb4677142161f61a142b3e21cfff9 (diff) | |
parent | ca65d20fdbaa719caaef055819cbae078c854c14 (diff) | |
download | chat-9bba6c79882d1f5d14b98052caf59a11fc2388d5.tar.gz chat-9bba6c79882d1f5d14b98052caf59a11fc2388d5.tar.bz2 chat-9bba6c79882d1f5d14b98052caf59a11fc2388d5.zip |
Merge pull request #2061 from mattermost/plt-1817
PLT-1817 Fix katex sanitization
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/markdown.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/markdown.jsx b/web/react/utils/markdown.jsx index 826b87d08..47b3a9a66 100644 --- a/web/react/utils/markdown.jsx +++ b/web/react/utils/markdown.jsx @@ -134,7 +134,7 @@ class MattermostMarkdownRenderer extends marked.Renderer { ); } else if (usedLanguage === 'tex' || usedLanguage === 'latex') { try { - const html = katex.renderToString(TextFormatting.sanitizeHtml(code), {throwOnError: false, displayMode: true}); + const html = katex.renderToString(code, {throwOnError: false, displayMode: true}); return '<div class="post-body--code tex">' + html + '</div>'; } catch (e) { |