markdown-it-katex icon indicating copy to clipboard operation
markdown-it-katex copied to clipboard

Long math equations overflow the page

Open TomBener opened this issue 5 years ago • 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!

TomBener avatar Nov 09 '19 06:11 TomBener

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

MicroDroid avatar Nov 27 '19 05:11 MicroDroid

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

MakerGYT avatar Jun 13 '20 11:06 MakerGYT