Where is the code that hides url links in source mode? #218
Answered
by
chrisgrieser
TrifarianGlory
asked this question in
Q&A
-
I like how this theme hides url links but I can't find what part of the code does this. I've searched this repo for url, fold, collapsible, etc but no luck. |
Beta Was this translation helpful? Give feedback.
Answered by
chrisgrieser
Oct 5, 2022
Replies: 1 comment
-
Hi, this snippet does the job. (in my theme, I use a different icon set, so I replaced that icon with a link-emoji for this snippet.) body:not(.show-urls) .cm-s-obsidian:not(.is-live-preview) .cm-line:not(.cm-active) .cm-string.cm-url:not(.cm-formatting) {
font-size: 0;
}
body:not(.show-urls) .cm-s-obsidian:not(.is-live-preview) .cm-line:not(.cm-active) .cm-string.cm-url:not(.cm-formatting)::after {
content: "🔗";
position: relative;
top: 2px;
}
.external-link {
background-image: none;
padding-right: 0;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chrisgrieser
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, this snippet does the job. (in my theme, I use a different icon set, so I replaced that icon with a link-emoji for this snippet.)