bennyxguo / Obsidian-Obsidianite

🎨 Obsidian.md custom theme, it's dark and simple but yet still stays sparkles!
MIT License
279 stars 48 forks source link

List items not rendered properly #25

Closed Yozh2 closed 2 years ago

Yozh2 commented 3 years ago

If a list item is longer than one line (i.e. a paragraph), it's sometimes not rendered properly in Preview Mode. The paragraph seems shifted down by 1 line. I disabled all custom CSS snippets, still the issue remains present. That's pretty irritating, and the original Obsidian theme doesn't have this issue, which is demonstrated below:

Original theme:

Original Obsidian Theme

Obsidianite Theme, edit mode:

Obsidianite theme edit mode

Obsidianite Theme, preview mode:

Obsidianite theme preview mode

Yozh2 commented 3 years ago

Figured out that the issue happens if there is at least one blank line between list items in the active list, no matter where it is. Demo:

No blank lines in Edit Mode → no line shifts in Preview Mode:

A single blank line in the list breaks the entire list. Every paragraph-like list item experiences the line shift in Preview Mode.