Can't get custom CSS to work

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.

  1. Go to Settings / Appearance / CSS Snippets.
  2. Click on the folder icon.
  3. 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: