Skip to content

KaTeX(5/n): Handle 'position' and ensure required inline styles for big operators #1627

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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

rajveermalviya
Copy link
Member

Stacked on top of #1452 because it depends on a commit from it namely: fef8a60 content: Handle 'top' property in KaTeX span inline style.

Related: #46.

rajveermalviya and others added 17 commits June 19, 2025 14:39
This will prevent string interpolation being evaluated during
release build. Especially useful in later commit where it becomes
more expensive.
And rename previous type to KatexSpanNode, also while making it a
subtype of KatexNode.
And inline the behaviour for `inline: false` in MathBlock widget.
This applies the correct font scaling if the KaTeX content is
inside a header.
In KaTeX HTML it is used to set the baseline of the content in a
span, so handle it separately here.
Implement handling most common types of `vlist` spans.
No changes on the widget side, because all the offsets currently
applied (we only support `top`) are relative to widgets original
position, using `Container.transform`.

Same reason the parser currently only accepts `relative` as the
value.
@rajveermalviya rajveermalviya added the maintainer review PR ready for review by Zulip maintainers label Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer review PR ready for review by Zulip maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants