daun30 downloadsImprove display of URLs in reading view by removing https:// and www. prefixes.
A plugin for Obsidian to improve display of URLs
Remove common prefixes like https:// and www. from links in
reading view. Useful if you can't be bothered to use markdown links and still want your notes to look
clean. The plugin only affects the display of links – the actual note content remains
unchanged.
Before
Watch https://www.youtube.com/watch?v=3C1Gnxhfok0
and read https://m.wikipedia.org/wiki/Corsica
After
Watch youtube.com/watch?v=3C1Gnxhfok0
and read wikipedia.org/wiki/Corsica
http:// or https://www.m. and mobile.amp.Open Settings → Pretty URLs to configure the plugin:
https: is always stripped.www., mobile., etc.You can define regex rules to rewrite URL-only links with a custom label.
Each rule has a pattern (a regular expression) and a replacement (a string that
may contain $1, $2, … to reference capture groups). Rules are evaluated in order;
the first match wins.
The plugin ships with three example rules that are disabled by default.
github.com/user/repo.^ and $ yourself if needed.