Not 100% certain whether this should be a bug or a feature request. I’m hitting some inconsistencies in rendering of embeds as list items in Live Preview Mode.
I found this old thread about the topic. Putting here for now, and can move to feature requests if appropriate.
Steps to reproduce
Put the following content in a note:
#### Paragram content
Some before content up here
Some content to embed up here ^embed-1
Some after content up here
----
#### Embed as paragraph
Some before content down there
![[#^embed-1]]
Some after content down there
> [!quote]
> Some before content down there
>
> ![[#^embed-1]]
>
> Some after content down there
----
#### Embed as line
Some before content down there
![[#^embed-1]]
Some after content down there
> [!quote]
> Some before content down there>
> ![[#^embed-1]]
> Some after content down there
----
#### Embed as list item
- Some before content down there
- ![[#^embed-1]]
- Some after content down there
> [!quote]
> - Some before content
> - ![[#^embed-1]]
> - Some after content
Did you follow the troubleshooting guide? [Y/N]
Yep. Tested in Sandbox.
Expected result
When embed is a line in a block (with no other content on the line), callout should have no additional newlines, same as a regular block:
When embed is a list item (with no other content on line), regular list should should have no additional new lines, same as a list item in a callout:
Actual result
An embed on a line in a block (with no other content on the line) has an additional newline after the embed content:
An embed in a regular list (with no other content on line), has addition newlines before and after the embed content:
Environment
SYSTEM INFO:
Obsidian version: v1.5.12
Installer version: v1.5.12
Operating system: Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000 23.1.0
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none