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

CSS Class Gets Applied to Ungrouped Elements

Open segsmachine opened this issue 1 year ago • 1 comments

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

segsmachine avatar Mar 17 '23 18:03 segsmachine