BigW Consortium Gitlab

Commit 63bc23cf by Munken

Detect whether math is display style

parent aa2c437f
......@@ -23,7 +23,8 @@
var mathNode = $( "<math>Test</math>" );
mathNode.insertAfter($(this));
katex.render($(this).text(), mathNode.get(0), { displayMode: false })
var display = $(this).hasClass('highlight');
katex.render($(this).text(), mathNode.get(0), { displayMode: display })
})
};
var handleMath = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment