diff options
-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) { |