Joplin increases line spacing for various elements with margins and padding. You may want tighter spacing whether you use Markdown or Rich Text.
Pressing Shift+Enter tightens Rich Text line spacing on desktop and mobile, but it can become cumbersome.
A desktop workaround is to add this CSS template to userstyle.css
, then modify it to your needs:
/* duplicate rule with different HTML tags and declarations as needed */
#rendered-md :is(p /* modify tags as needed */) {
/* modify declarations below as needed */
margin-bottom: 0 !important;
margin-top: 0 !important;
padding-bottom: 0 !important;
padding-top: 0 !important;
line-height: 1.3em !important; /* Joplin default, change as needed */
}
For example, I use this CSS to set single line spacing for paragraphs and lists:
#rendered-md :is(p, ul, ol, li) {
margin-bottom: 0 !important;
line-height: 1.5em !important;
}
#rendered-md :is(ul, ol) {
margin-top: 0 !important;
}
I find spacing for other elements (such as headings, tables, and horizontal rules) suitable, but you can adjust them as needed.
Back to the issue, would a toggle between single and double spacing when pressing Enter help?