Repository navigation
MJ 2.7.9 with new CM-MJ that supports MJ >2.4 - #222
Conversation
|
Not certain this is ready? In 2 min testing found bug cben/CodeMirror-MathJax#46 😳. Hard to say if it's a regression, cause I'd seen it before, happens on older CM-MJ too! I tried this now because I saw it's been "ready" years ago and seemed the blocker was actually solved and it's a shame to hold it back. But the truth is that I don't use Mathdown regularly enough nowdays and deploying a big implementation change like this would reduce confidence. For performance, that's unwise. At present, I better only merge stuff that's definite bug fixes / features. (Now, if I do fix the bug on CM-MJ head, then it'll be worth bumping.) |
|
What do you know, Chromium still suffers from | lines after each formula.
|
Finally solves MathJax 2.4 showing a vertical line after each formula (in Chrome?). MathJax 25+ was blocked on 2 things: (cben/CodeMirror-MathJax#33) - many Typeset calls are way slower than 2.4, *mostly* solved by newer CM-MJ batching them - typesetting out of DOM no longer works, fixed by CM-MJ now typesetting in invisible div, But the new CM-MJ made math tiny in mathdown :-( => Turns out "lining_numerals_charter" font was confusing MJ, found a workaround, now I can finally update :-)
a5578b5 to
a40d836
Compare
|
Some anecdotal testing on
|
|
BTW over a real network, things are slower yet due to JS, font etc. fetching.
|
=> after fix |
MJ 2.4 was wrongly using displaystyle scaled parens for `\choose` and `\binom`. (also, `\choose` had different horizontal spacing). MJ 2.7 matches real TeX, default parens are shorter than text :-( `\dbinom` helps but has too much vertical gap between the 2 lines; so do array/matrix solutions. => `\small` makes text shorter so it fits the parens nicely, but is smaller than before. Applied HTML 120% scale so that logo remains bigger than it'd be in editor (and better fit for header line). End result is almost like before, tighter horizontal spacing which I actually like. [con: it does not _exactly_ match any semantic math construct. I don't care!]
Measurable speedup on firefox & chrome. Almost as fast as 2.4.0 was :-/ The preview is wasted work for us, we render math in invisible area before it's measured and handed off to CodeMirror. (User can still enable it via MJ menu, cookie overrides config.)
|



[resurrecting #169]
[HTML-CSS] [Chrome 48] visual artifacts due to Chrome now rounding up [was: rendering issue in chrome canary builds] mathjax/MathJax#1300
But I'm pretty that's old news for mathdown, had already picked up the fix somehow? Perhaps Chrome itself? Anyway.
MathJax 2.5+ was blocked on 2 things: (cben/CodeMirror-MathJax#33)
many Typeset calls are way slower than 2.4,
mostly solved by newer CM-MJ batching them
typesetting out of DOM no longer works,
fixed by CM-MJ now typesetting in invisible div,
But the new CM-MJ made math tiny in mathdown :-(
=> Turns out "lining_numerals_charter" font was confusing MJ, found a workaround, now I can finally update :-)