Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update math style when context changes #12

Open
cben opened this issue Oct 23, 2013 · 0 comments
Open

Update math style when context changes #12

cben opened this issue Oct 23, 2013 · 0 comments
Labels

Comments

@cben
Copy link
Owner

cben commented Oct 23, 2013

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.

cben added a commit that referenced this issue Nov 22, 2013
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 cben changed the title Style math according to context Update math style when context changes May 20, 2014
@cben cben added the bug label Jul 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant