From 1e35e17b8b5d7563a46e5c17117d33fa70cad659 Mon Sep 17 00:00:00 2001 From: smmercuri Date: Tue, 7 Nov 2023 17:11:57 +0000 Subject: [PATCH] correct mathjax --- stack/cas/castext2/blocks/parsons.block.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stack/cas/castext2/blocks/parsons.block.php b/stack/cas/castext2/blocks/parsons.block.php index 7cbe985d9af..7475b631591 100644 --- a/stack/cas/castext2/blocks/parsons.block.php +++ b/stack/cas/castext2/blocks/parsons.block.php @@ -102,10 +102,10 @@ public function compile($format, $options): ? MP_Node { new MP_String('script'), new MP_String(json_encode(['type' => 'text/javascript', 'src' => $js])) ]);*/ - $resizeScript = ''; + $resizeScript .= '';*/ // We need to define a size for the inner content. $width = '100%'; @@ -209,7 +209,7 @@ public function compile($format, $options): ? MP_Node { $code .= 'sortable.generate_available(proofSteps);' . "\n"; if (count($inputs) > 0) { - //$code .= 'MathJax.typesetPromise();' . "\n"; + $code .= 'MathJax.typesetPromise();' . "\n"; }; $code .= 'var opts = {...sortable.options, ...{onSort: () => {sortable.update_state(sortableUsed, sortableAvailable);}}}' . "\n"; $code .= 'var sortableUsed = Sortable.create(usedList, opts);' . "\n";