Skip to content
Discussion options

You must be logged in to vote

Thanks for the report. This is already handled on the current develop branch.

The inline math renderer keeps KaTeX content on one line, but the math popup now has a bounded width and horizontal overflow enabled:

https://github.com/marktext/marktext/blob/develop/packages/muya/src/assets/styles/inlineSyntax.css

There is also a regression test for this exact case:

https://github.com/marktext/marktext/blob/develop/packages/muya/e2e/tests/blocks/inline-math-overflow-4339.spec.ts

This is intentional: a long formula is allowed to scroll inside the math popup so it does not make the whole editor wider. If you are seeing the scrollbar on an older build, updating to a build containing that change s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dev-SR
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants