Okay, I kept digging and it is possible. Apparently the reason why it wasn’t working with my css snippet was that obsidian moved from CM5 to CM6.
Here is the solution that works for me.
- Go to Settings / Appearance / CSS Snippets.
- Click on the folder icon.
- In the folder that opens create a file with a .css ending and paste the following (it’s best to use a code editor like Brackets):
.markdown-preview-view br {
content: '';
display: block;
margin-top: 10px;
}
.markdown-source-view :is(.cm-line + .cm-line) {
padding-top: 1em;
}
I found the answers here: