SlRvb / Obsidian--ITS-Theme

Theme designed with readability and customizability in mind. Change it easily to your liking with the Style Settings plugin installed.
https://publish.obsidian.md/slrvb-docs/ITS+Theme/ITS+Theme
GNU General Public License v2.0
556 stars 114 forks source link

[FR] Add embed adjustment to fully remove the link #135

Closed scottTomaszewski closed 2 years ago

scottTomaszewski commented 2 years ago

I have a use-case to fully remove the embed link to avoid showing it (im using embeds to reuse sections in multiple places, but the sections are effectively metadata). I saw there was a no-lk (speaking of, the docs say nlk which seems wrong?), but I didn't even want it to show on hover. Just wanted to share in case others may find it helpful.

.internal-embed[alt*="rm-lk"] .markdown-embed-link,
.internal-embed.nlk .markdown-embed-link {
    display: none;
}
SlRvb commented 2 years ago

Oops, actually, the docs are incorrect as the nlk actually just removes it entirely even if you hover over it.

SlRvb commented 2 years ago

Ohh, I just hadn't updated the separate snippet 🤦‍♀️

SlRvb commented 2 years ago

Fixes have been added. nlk should just hide the link entirely. lk-hvr is to show link on hover.

I've updated the docs and the snippet.

scottTomaszewski commented 2 years ago

Just checked it out - perfect, thanks <3