You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 area (e.g. prepend/remove > at start of long parapraph), formulas are not re-rendered.
Fixing this might be unwise (performance-wise) until caching is implemented. Ideally, should use Rerender() API to re-generate DOM with new styles/measurements without re-parsing latex.
The text was updated successfully, but these errors were encountered:
Using multiplexingMode => imperfect in various ways.
Breaks #12 entirely — all math now styled as .cm-keyword, no way to access surrounding style.
The good news is that it's optional - you call defineMathMode() and use the resulting mode (see demo).
This interface is likely to change.
cben
changed the title
Style math according to context
Update math style when context changes
May 20, 2014
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 area (e.g. prepend/remove
>
at start of long parapraph), formulas are not re-rendered.Fixing this might be unwise (performance-wise) until caching is implemented. Ideally, should use
Rerender()
API to re-generate DOM with new styles/measurements without re-parsing latex.The text was updated successfully, but these errors were encountered: