Hi! I’m trying to find a solution (probably via CSS) that lets me leave the link visible when embedding other files in my vault. For instance, when I type ![[FileA]]
, that text dissapears, but I want to find a way to make it remain the way it does when I type [[FileA]]
. Yes, I know embeds can show the title of the file, but I’m not a fan of the way it looks! Any snippets would be appreciated, I use Minimal as my theme!
Not easily. In Live Preview, the link is removed from the DOM as soon as the embed is shown.
But here’s a hack, which is less than ideal but could work well enough:
/* Show the embed link even in Live Preview */
:not(.cm-active) + .internal-embed.is-loaded::before {
content: '![[' attr(src) ']]';
color: var(--link-color);
}
1 Like
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.