Steps to reproduce
Enter newlines within HTML block tags
Expected result
Newlines should not be rendered (i.e. newlines within HTML are triggered by <br/> or new block-level tags).
Actual result
Obsidian renders new lines, effectively double-spacing the rendered HTML.
Environment
SYSTEM INFO:
Obsidian version: 1.12.7
Installer version: 1.8.10
Operating system: #1 SMP PREEMPT_DYNAMIC Thu, 30 Apr 2026 17:29:37 +0000 7.0.3-1-MANJARO
Login status: not logged in
Language: en-GB
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 2
Restricted mode: off
Plugins installed: 16
Plugins enabled: 16
1: Style Settings v1.0.6
2: Table Generator v1.3.1
3: HTML Docs v1.0.3
4: Paste As Html v1.0.2
5: Calendar v1.5.10
6: Dataview v0.5.68
7: Tasks v8.0.0
8: Templater v2.20.4
9: QuickAdd v2.12.0
10: Linter v1.31.2
11: Excalidraw v2.22.3
12: Front Matter Title v3.13.1
13: Buttons v0.9.13
14: Auto Card Link v1.2.3
15: URL Namer v1.1.1
16: Editing Toolbar v4.0.8
Additional information
Example
<table>
<tr>
<td>
First line<br/>
Second line
</td>
</tr>
</table>
…renders as…
First line
Second line
…instead of…
|
First line Second line |
To get normal HTML output you would need to make it much less readable:
<table>
<tr>
<td>First line<br/>Second line</td>
</tr>
</table>