mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix katex sanitization
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user