Beni Cherniavsky-Paskin
Beni Cherniavsky-Paskin
[spin off from https://github.com/cben/mathdown/issues/56#issuecomment-108872386] Using heap profiling on my [~100K document](http://mathdown.net/?doc=CS3X9O9FQgI), I see Chrome heap dump usage mainly consists of 50~60MB of DOM and ~40MB of CodeMirror.Lines arranged in a...
Needs changes in CM's markdown mode: 1. Recognize $...$ and don't parse stuff like _ and \* inside it. (a-la backticks `...`) 2. Adopt pandoc-like rule where _ and \*...
used to be very broken? currently seems mostly harmless (but not all math gets re-rendered). At least CM widgets must be re-measured for correctness.
gives `Uncaught TypeError: Cannot read property 'MathJax' of undefined` in console
KaTeX has this clever tweak which IIUC avoids breaks between math & adjacent punctuation: ``` white-space: nowrap; .katex-inner { // Making .katex inline-block allows line breaks before and after, //...
Sometimes all rendering stops, until reload :-( ``` Object render-math.js:46 34.382s typesetting $\ce{$ … render-math.js:46 34.394s done typesetting $\ce{$ render-math.js:53 34.394s CodeMirror.Posch: 28line: 7__proto__: CodeMirror.Posrender-math.js:53 error render-math.js:46 34.395s unrendering math...
Make [automatic line breaking](http://docs.mathjax.org/en/latest/output.html#automatic-line-breaking) work. Probably set editor's width on span, and jax.Rerender() on any resize?
When a formula is created it's typest according to the surrounding style (big in headers, colored in lists/quotations etc. But when edits affect the style far down from the changed...
A new approach is needed to support #2, #3 and #12. Currently I'm hooking change events, clearing all marks in changed area, re-parsing lines using ad-hoc regexp and re-typesetting them....
If I have: ``` foo foo $$\frac{very high}{formula}$$ bar bar ``` and I move from "foo foo" into the formula and back, "bar bar" (and the rest of the doc)...