Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gap between embed and regular text #1

Closed
DutchPete opened this issue Nov 17, 2022 · 3 comments
Closed

Gap between embed and regular text #1

DutchPete opened this issue Nov 17, 2022 · 3 comments

Comments

@DutchPete
Copy link

Normally, the gap between a paragraph of transcluded text and a paragraph of regular text is the same as between 2 paragraphs of regular text.

image

To achieve that I use this snippet

/* make gap between transcluded paragraph and normal para like between
2 normal paras */
.internal-embed.is-loaded > .markdown-embed {
    border: none;
    padding: unset;
}
.internal-embed.is-loaded > .markdown-embed > .markdown-embed-content > .markdown-rendered {
    padding: unset;
}
.internal-embed.is-loaded > .markdown-embed > .markdown-embed-content > .markdown-rendered p {
    margin-top: unset;
    margin-bottom: unset;
}

When Make.md is enabled, the snippet seems to be overridden..

image

Is there any way to correct it?

@jp-cen
Copy link
Contributor

jp-cen commented Nov 18, 2022

If I'm understanding what you're trying to override correctly, putting margin: unset !important; in the last property should work. However, if there's an empty line in that space, this will not be removed in the Flow Editor. The Obsidian reading mode/ markdown renderer automatically strips these extra lines and in order to achieve the seamlessness between edit/view mode, the extra space had to be added.

@DutchPete
Copy link
Author

I am not sure what you mean by “an empty line in that space”: the lay-out of my text with Make.md enabled is the same as with Make.md disabled. My OP comment relates to Live Preview only, I don't know if that makes a difference?

Anyway, it seems that it cannot be corrected, so I will have to accept it as a trade-off for using Make.md.

@DutchPete
Copy link
Author

If I am not mistaken this issue cannot be taken any further, so I'll close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants