typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

latex output overlap caused by style "column-count:2;" #4338

Closed du33169 closed 3 years ago

du33169 commented 3 years ago

Description

Custom css style column-count:2; for #write element will cause any formula in mathblock to overlap.

Sample Markdown

$$
F=
$$

Image Result

1

Some other notes

abnerlee commented 3 years ago

I'm not able to reproduce this, what's your verison BTW?

And please try excluding blocks (like math, etc) from splitting up using -webkit-column-break-inside : avoid;

du33169 commented 3 years ago

This problem still exists for me in the lastest version(currently 0.10.11 beta);

Just select one default theme, like "Academic", and edit academic.user.css like this:

#write{
    column-count:2;
}

then restart typora.

-webkit-column-break-inside : avoid; seems not working, and I’m inclined to consider it a problem caused by the version of Mathjax.