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

KaTeX (2/n): Support horizontal and vertical offsets for spans #1452

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

Conversation

rajveermalviya
Copy link
Member

Stacked on top of: #1408

Web Flutter
Screenshot 2025-04-01 at 22 08 22 Screenshot 2025-04-01 at 22 09 00

Related: #46

It will be used in later commits to parse inline CSS styles
in HTML while parsing KaTeX HTML spans.
These fonts will be used in later commits to show KaTeX
content.
This later avoids a collision for the `TextDirection` type,
which is also defined in `dart:ui`.
Following commits will add ability to render some basic KaTeX content,
where rendering of some KaTeX content would be broken. So, add an
experimental flag which is disabled by default, and allows the user
or developer to explicitly enable and test the rendering of KaTeX content.
Negative margin spans on web render to the offset being applied
to the specific span and all the adjacent spans, so mimic the
same behaviour here.
Implement handling most common types of `vlist` spans.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant