When a header (or a list item) that contains a code block is folded, the format is wrong

Steps to reproduce

  1. Create a note with the following content:
   - list item
      ```
       some code
      ````
       
  1. Enable folding of heading and list items
  2. Fold the list item

Expected result

List item maintains it’s formatting after being folded

Actual result

List item is formatted as if it were a coffee block, after folding

Environment

  • Operating system: MacOS
  • Obsidian version: 0.8.11

Additional information

image

2 Likes

Steps to reproduce

  1. Create a new note in editor mode
  2. Make a header with any number of #'s
  3. Insert a code fence with any content. Don’t add a new line after the code fence and make sure that nothing comes after the code fence.
  4. Collapse the header using the toggle button.

Expected result

In both editor and preview mode, the header should collapse everything under it up to the header of the same size or until the end of the page.

Actual result

When the header is collapsed (only in editor mode), it inherits the background of the code fence instead of keeping the normal background when it is not collapsed.

Photo of the non-collapsed header:

Photo of collapsed header:

Environment

  • Operating system: Windows 10
  • Obsidian version: v0.11.5
3 Likes

this looks fixed in 0.13.15

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.