Create a new file, and write down the following code
> [!note] title
>
> foo
> bar
>
> foo2
> bar2
Expected result
Actual result
Environment
SYSTEM INFO:
Obsidian version: v1.4.5
Installer version: v1.4.5
Operating system: Windows 10 Enterprise 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: off
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
An extra <br> tag cause this problem (it shouldn’t be there)
Well, a title section is a short, concise description of a text body to follow.
A title isn’t meant to be a text body replacing the latter. The text body expands and explains in detail what the title describes.
Mixing both concepts and their order is confusing in a semantic and technical way.
Also, Markdown usually doesn’t break lines.
How I use this feature is a matter of personal habit, but the feature itself is not a personal habit, it is the syntax included in the canonical John Gruber’s Markdown and the CommonMark, every markdown parser/renderer should obey it.
A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines. (A blank line is any line that looks like a blank line — a line containing nothing but spaces or tabs is considered blank.) Normal paragraphs should not be indented with spaces or tabs.
The implication of the “one or more consecutive lines of text” rule is that Markdown supports “hard-wrapped” text paragraphs. This differs significantly from most other text-to-HTML formatters (including Movable Type’s “Convert Line Breaks” option) which translate every line break character in a paragraph into a <br> tag.
When you do want to insert a <br> break tag using Markdown, you end a line with two or more spaces, then type return.
Yes, this takes a tad more effort to create a <br>, but a simplistic “every line break is a <br>” rule wouldn’t work for Markdown. Markdown’s email-style blockquoting and multi-paragraph list items work best — and look better — when you format them with hard breaks.