Block level elements inside a parent have additional spacing

Steps to reproduce

  1. Be in live editor mode
  2. Write some html where there are one or more block level elements inside another element.
  3. Move your cursor out of the html so that it gets rendered

Expected result

Something like this

<div style="border: solid 2px gold">
	<div>Why am I</div>
	<div>so far away from</div>
	<div>the other lines?</div>

to be rendered like this (the way it is rendered in preview mode):

Actual result

That same html is rendered like this in live preview mode:


  • Operating system: Windows 10
  • Debug info:
    Obsidian version: v0.13.14
    Installer version: v0.12.15
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Safe mode: on

I am not going to take this type of thing as bugs, sorry.

What is it then? I haven’t been able to figure out the cause of the inconsistency. There does not seem to be any styling or markup responsible for the gaps in the html of the preview.