From 206ddd11add6cd13b1601724000e88a4eb22657d Mon Sep 17 00:00:00 2001 From: Leangseu Kim Date: Mon, 22 Jan 2024 09:48:49 -0500 Subject: [PATCH] chore: revert change to Mathjax --- cms/djangoapps/pipeline_js/js/xmodule.js | 14 +------------- .../content_libraries/xblock_iframe.html | 10 ---------- common/templates/mathjax_include.html | 15 --------------- 3 files changed, 1 insertion(+), 38 deletions(-) diff --git a/cms/djangoapps/pipeline_js/js/xmodule.js b/cms/djangoapps/pipeline_js/js/xmodule.js index 44789c8cc6e2..8a19355c1a93 100644 --- a/cms/djangoapps/pipeline_js/js/xmodule.js +++ b/cms/djangoapps/pipeline_js/js/xmodule.js @@ -23,11 +23,6 @@ define( 'mathjax', function() { window.MathJax.Hub.Config({ - styles: { - '.MathJax_SVG>svg': {'max-width': '100%'}, - // This is to resolve for people who use center mathjax with tables - 'table>tbody>tr>td>.MathJax_SVG>svg': {'max-width': 'inherit'}, - }, tex2jax: { inlineMath: [ ['\\(', '\\)'], @@ -65,14 +60,7 @@ define( if (oldWidth !== document.documentElement.scrollWidth) { t = window.setTimeout(function() { oldWidth = document.documentElement.scrollWidth; - MathJax.Hub.Queue( - ['Rerender', MathJax.Hub], - [() => $('.MathJax_SVG>svg').toArray().forEach(el => { - if ($(el).width() === 0) { - $(el).css('max-width', 'inherit'); - } - })] - ); + MathJax.Hub.Queue(['Rerender', MathJax.Hub]); t = -1; }, delay); } diff --git a/cms/templates/content_libraries/xblock_iframe.html b/cms/templates/content_libraries/xblock_iframe.html index b73a25f257b5..84d83de42ded 100644 --- a/cms/templates/content_libraries/xblock_iframe.html +++ b/cms/templates/content_libraries/xblock_iframe.html @@ -81,11 +81,6 @@