How to get rid of unnecessary <br> tag right before the table?

Steps to reproduce

  1. Open a Sandbox Vault
  2. Write down a line (paragraph)
  3. Add a table right below the line (with a simple ⏎Enter/⏎Return)

You will see the unnecessary gap due to a <br> tag.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

No <br> tag is necessary, as there are <div> embracing everything and <div> is a block-level element, so no such <br> is necessary.

Actual result

An unnecessary <br> tag is being produced, keeping the table far apart from the preceding line.

Environment

SYSTEM INFO:
	Obsidian version: v1.9.12
	Installer version: v1.8.10
	Operating system: Windows 11 Pro 10.0.26100
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

This is not a bug. Currently, Obsidian requires a table to be separated with a blank line, this blank line is auto inserted if not present.

Feel free to search/open a FR about this.

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