URL hiding

Hey all, I’m new to Obsidian and one of my big use cases is linking my notes to content I read online, so I use a lot of URLs and sometimes they are not pretty (I’m talking maybe 4,5 lines of garble…). Is there a way to add the urls like one does in most apps, where after doing cmd+k a window appears to paste the url and then it’s conveniently hidden from the user?

I know they are hidden in cmd+E mode, but still, editing the notes with all that garble there is quite a nightmare… thanks!!!

1 Like

No not yet. A WYSIWYM editor is on the development roadmap. Then you’ll see formatting as you edit.

To clarify, “cmd-E” mode is called “Preview Mode” and “Edit Mode”.

2 Likes

Thanks for the comprehensive reply. Hope it’s ready soon!

You can achieve that (url hiding in edit mode) with custom css:

/* CLUTTER FREE MARKDOWN */

/* hide formatting tags when line is not active */
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting,
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-string.cm-url,
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-link
{ display: none; } 

/* except list markers, which should appear everytime */ 
span.cm-formatting-list { display: inline !important; }

/* and task checkboxes, with special font */
span.cm-formatting-task { display: inline !important; font-family: monospace; }
7 Likes

Thanks. Is good, but not for Custom preview Link.

this is amazing!!! thank you so much!

How do I keep the URL from disappearing when I select multiple characters