Embeds use parent styling

Steps to reproduce

Put an embed in a heading, list item or any other formatting block.

Expected result

Embed styling should be encapsulated such that it is rendered as if that note was in preview mode.

Actual result

The embed is rendered with the parent formatting. For example, if added to a heading, all of the text in the embed will have the heading styling. If added to a list item, list items in the embed are rendered as if they are nested in the parent list item. See https://forum.obsidian.md/t/embed-note-with-list-inside-list-uses-wrong-bullet-styling/3497

Environment

  • Operating system: Windows 10
  • Obsidian version: 0.8.4

Do you still have this with 0.8.15?

Yes, same result in 0.8.15

@WhiteNoise: and in 0.9.1 on macOS.

Seems fixed as of 0.9.11:

image