Obsidian automatically creates a line break when i enter reading mode, how do i remove this

Ex:

Heading

Body of text

turns into:

Heading

line break
Body of text

There are a number of similar threads that might have the answer you need, in part depending on the theme you are using. What have you tried so far that hasn’t worked?

Similar threads …

There is also a set of troubleshooting steps to try:

I’ve tested out a few things and figure out the automatic line breaks are a part of the minimal theme, still is there a css snippet that could remove it?

It’s not a line break, but the margin between the heading and paragraph elements (if we’re talking about the same thing).

Screenshot 2024-10-15 093012

Screenshot 2024-10-15 092931

The default theme’s --p-spacing is set to 1rem. As a style choice, Minimal sets it at 1.75rem. You can change it in Style Settings > Minimal > Text → Paragraph spacing. No CSS snippet needed.

this solved the issue thank you!

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