obsidian-custom-classes icon indicating copy to clipboard operation
obsidian-custom-classes copied to clipboard

Breaks when collapsing headings.

Open arootroatch opened this issue 1 year ago • 0 comments

Describe the bug When have two of the same level headings one after the other, the class: <class-name> line above the second heading, when collapsing the first heading, gets interpreted as the last line of the first heading. It doesn't completely break; I'm using a class to change the font color of headings and the color still applies but the font-size changes drastically.

To Reproduce Steps to reproduce the behavior:

  1. Type 2 subsequent headings of the same type (e.g. 2 h2s)
  2. Add the custom class to the second heading
  3. Collapse the first heading
  4. See the second heading change formatting and return to normal when expanding the first heading

Expected behavior I expected formatting to stay consisting when collapsing the previous heading.

Screenshots Screenshot 2024-01-18 at 15 49 15 Screenshot 2024-01-18 at 15 49 26

Device (please complete the following information):

  • Operating System: MacOS 13.6.3
  • Obsidian version: 1.5.3

arootroatch avatar Jan 18 '24 21:01 arootroatch