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

Long math equations overflow the page #28

Open
TomBener opened this issue Nov 9, 2019 · 2 comments
Open

Long math equations overflow the page #28

TomBener opened this issue Nov 9, 2019 · 2 comments

Comments

@TomBener
Copy link

TomBener commented Nov 9, 2019

Hello,

I use markdown-it-katex to add math equations for my blog powered by VuePress. But when the equation is longer than the size of screen (especially on the mobile phone), it will overflow the page, which looks very weird.

IMG_0072.jpeg

I have noticed that many sites's math equations are able to swipe left like the code block to prevent the equations from overflowing the page. I wonder whether markdown-it-katex supports this feature?

Thanks a lot!

@MicroDroid
Copy link

I got it to wrap properly using some white-space: normal and text-overflow: wrap stuffs.

@MakerGYT
Copy link

I also have this problem, This is a problem with multi-line equations without line breaks.
You can try markdown-it-latex2img

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

No branches or pull requests

3 participants