Skip to content

Where is the code that hides url links in source mode? #218

Discussion options

You must be logged in to vote

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;
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chrisgrieser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants