I have tried digging through the CSS files of my theme I downloaded, changing attributes and trying to add some to see if it will work.
What I’m trying to do
I would like the spacing to be less in preview mode. I don’t know much CSS, but I’m guessing there must be some attribute I don’t know the name of that can fix it. Here is the CSS below for the headers.
Also for some reason the 6th header is the only one with markdown-preview in it, and I’m guessing I can use that to adjust the spacing in preview mode only for all of the headers.
A quick fix would be to remove that rule from the theme css. A clean way to to this is by defining a css snippet to override this behavior with this rule:
.markdown-preview-view.is-readable-line-width .markdown-preview-sizer > div {
display: block !important;
}
Sorry, I don’t really see much of a difference when I apply this, the spacing after the header and before the list is too big for me. I found a way to fix the bottom margin after the list!