提交 63bc23cf 编写于 作者: M Munken

Detect whether math is display style

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册