Skip to content

Breaks when collapsing headings. #18

@arootroatch

Description

@arootroatch

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions