Skip to content

CSS Class Gets Applied to Ungrouped Elements #11

Description

@segsmachine

Describe the bug
Elements of the same type are grouped together even when there's a line break

To Reproduce
Steps to reproduce the behavior:

  1. Add the element you want to apply the css to (paragraph, list, checkbox, etc)
  2. Press enter or type
  3. Add a second element of the same type
  4. Go Into Reading Mode
  5. CSS class still applies to second element

Expected behavior
The CSS class should only apply to the elements with no line breaks in between (as seen in preview)

Screenshots

image

Preview Mode
image

Reading Mode
image

Device (please complete the following information):

  • Operating System: Windows 11
  • Obsidian version: 1.1.16

Additional context
I was able to reproduce this using any other element

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