Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks when collapsing headings. #18

Open
arootroatch opened this issue Jan 18, 2024 · 0 comments
Open

Breaks when collapsing headings. #18

arootroatch opened this issue Jan 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@arootroatch
Copy link

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 arootroatch added the bug Something isn't working label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants