obsidian-custom-classes
obsidian-custom-classes copied to clipboard
Breaks when collapsing headings.
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:
- Type 2 subsequent headings of the same type (e.g. 2 h2s)
- Add the custom class to the second heading
- Collapse the first heading
- 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
Device (please complete the following information):
- Operating System: MacOS 13.6.3
- Obsidian version: 1.5.3