kognise / obsidian-atom

A theme for Obsidian based on Atom's One family
The Unlicense
223 stars 57 forks source link

mjx-container - not handling centre #26

Closed theonlydaleking closed 1 year ago

theonlydaleking commented 1 year ago

Is there a reason this rule was included? My understanding of MathJax is that double $$ should centre the equation, and you use single $ for inline. This css rule overwrites this behaviour unfortunately.

kognise commented 1 year ago

This is a me-being-opinionated thing, probably one of several. I personally prefer double-$$ MathJax being left aligned over centered in my math/physics notes.

My instinct is not to "fix" this, although perhaps there's some technical reason for centering MathJax that I'm missing!

You can, if you wish, use a custom CSS snippet:

mjx-container {
  text-align: center !important;
}
theonlydaleking commented 1 year ago

Yup thought that might be the case - completely understand. I added a custom rule myself like you suggested and all is well. Just thought I'd check to see if it was a mistake or on purpose