waylonflinn / markdown-it-katex

Add Math to your Markdown with a KaTeX plugin for Markdown-it
MIT License
256 stars 155 forks source link

Long math equations overflow the page #28

Open TomBener opened 5 years ago

TomBener commented 5 years ago

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 commented 4 years ago

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

MakerGYT commented 4 years ago

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