Smaller margin in naked Embeds

Things I have tried

I have tried using the inspect elements it only shows an html of <div> and tried to play around with the themes settings. I cannot find it

What I’m trying to do

I’m trying to make the naked embed natural, I want the margin to be close enough to each other

Try to play with this:

.markdown-preview-view .markdown-embed, 
.markdown-preview-view .file-embed {
	margin-top: 0px;
	margin-bottom: 0px;

Thanks you for this, the code did make it smaller but there is still huge gap.

Many things can contribute for this. What’s your theme? What are the css snippets you use?
It’s obvious that you don’t use the default theme and your headings have some extra css style. For example, one of the problems may be in the margin-top value defined for h1, h2, h3 …

An example for heading h2:

.markdown-preview-view h2 {
    margin-top: 20px;
1 Like

Yes, I’m using Palatinate. While the CSS snippets are running are bullet point relationship and mermaid resizer

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