waylonflinn/markdown-it-katex

Long math equations overflow the page

Opened this issue · 2 comments

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!

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

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