Skip to content

Commit 16ee8d4

Browse files
committed
Rename typesetting div class to .CodeMirror-MathJax-typesetting
Use case: I've discovered MJ measuring & rendering from the typesetting div (commit d77f0fc, #33) somehow made math small in Mathdown, due to mathdown.css having: .CodeMirror { font-family: "lining_numerals_charter", "Georgia", ... } If I drop out the (nearly empty) first font "lining_numerals_charter", it works out. => I'm just gonna style the typesetting div without this font, so I want it to have a better "public class name".
1 parent 962458a commit 16ee8d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

render-math.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ CodeMirror.hookMath = function(editor, MathJax) {
230230
typesettingDiv.style.height = 0;
231231
typesettingDiv.style.overflow = "hidden";
232232
typesettingDiv.style.visibility = "hidden";
233-
typesettingDiv.className = "CodeMirror-MathJax";
233+
typesettingDiv.className = "CodeMirror-MathJax-typesetting";
234234
editor.getWrapperElement().appendChild(typesettingDiv);
235235

236236
// MathJax is much faster when typesetting many formulas at once.

0 commit comments

Comments
 (0)