SlRvb / Obsidian--ITS-Theme

Theme designed with readability and customizability in mind. Change it easily to your liking with the Style Settings plugin installed.
https://publish.obsidian.md/slrvb-docs/ITS+Theme/ITS+Theme
GNU General Public License v2.0
531 stars 112 forks source link

[Bug] Heading centering always applied in Preview mode #119

Closed stecydube closed 2 years ago

stecydube commented 2 years ago

Describe the bug

Some headers gets centered while they should not when switching to Live Preview mode.

They are correctly rendered in Source and Reading mode.

Expected behavior

Live preview mode should be in sync with reading mode.

To Reproduce

Set the following settings under Note Elements:

Create a note with H1, H2 and H3.

H1 and H2 should be centered. H3 should be left aligned.

OS

Where does the bug occur?

Obsidian Version:

0.14.15

Additional notes:

While I like the fact that some headers are not centered when I select those options, I find it not obvious.

Maybe having a separate settings for header alignment for each header type would be an option ?

SlRvb commented 2 years ago

Yeah it would have to be a new set of options. Underline styling only affects the line not text alignment and the center headings just targets them all.

I'll add new options for text alignment 👍

stecydube commented 2 years ago

Wow! You're fast 😎 Works beautifully. Only thing, right alignment does not seem to work, it always aligns to the left.

Thank you very very much. ❤

SlRvb commented 2 years ago

Oops, should be fixed now \:) 2934444