inkdropapp / inkdrop-math

Add math syntax support to markdown editor and preview
https://www.inkdrop.app/
MIT License
26 stars 7 forks source link

Is it possible to force the alignment? #8

Closed naxmefy closed 3 years ago

naxmefy commented 3 years ago

that would be a nice feature.

Normally markdown behaves with "left alignment" but here (except inline) it is forced to use centered

$$
2(x+5)-7 = 3(x-2)
\\
2x+10-7 = 3x-6
\\
9 = x
$$
craftzdog commented 3 years ago

You can do that by applying a custom CSS like so in your styles.less:

.katex-display > .katex {
    text-align: left;
}