Skip to content

Commit 4f75f53

Browse files
committed
Fix removing underlines from internal links
1 parent 818379e commit 4f75f53

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on top of the file.
1414
newer releases
1515
- `clean-embeds-all.css`: Make embeds blend into notes (Removes title, link, padding,
1616
margins from embeds, so they really look like the same note). This code is from
17-
Matthias C. Hormann.
17+
Matthias C. Hormann (currently not working)
1818
- `disable_strikethrough_checkbox.css`: Disable strikethrough for ticked checkboxes
1919
(authors are [mxmossy][] and [conname][])
2020
- `highlight-bold-darkmode.css`: Highlight bold darkmode: Bold text in dark mode doesn't stand out very much, so

all-caps-internal-links.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
/* Doesn't work in edit mode at the moment
2-
* because of https://stackoverflow.com/questions/4481318/
3-
*/
41
.cm-s-obsidian span.cm-hmd-internal-link,
52
.markdown-preview-view .internal-link {
6-
text-decoration: none;
73
font-weight: 550;
84
text-transform: uppercase;
95
font-size: 0.9em;
106
letter-spacing: 0.125em;
117
border-radius: 4px;
128
}
9+
10+
/* Removing underlines in edit mode.
11+
* This is a bit more tricky because of
12+
* https://stackoverflow.com/questions/4481318/
13+
* Solution based on https://www.reddit.com/r/ObsidianMD/comments/s9ip7v/link_underline/
14+
*/
15+
.cm-hmd-internal-link .cm-underline,
16+
.internal-link {
17+
text-decoration: initial !important;
18+
}

no-underline-internal-links.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.cm-s-obsidian span.cm-hmd-internal-link,
2+
.markdown-preview-view .internal-link {
3+
font-weight: 550;
4+
text-transform: uppercase;
5+
font-size: 0.9em;
6+
letter-spacing: 0.125em;
7+
border-radius: 4px;
8+
}
9+
10+
/* Removing underlines in edit mode.
11+
* This is a bit more tricky because of
12+
* https://stackoverflow.com/questions/4481318/
13+
* Solution based on https://www.reddit.com/r/ObsidianMD/comments/s9ip7v/link_underline/
14+
*/
15+
.cm-hmd-internal-link .cm-underline,
16+
.internal-link {
17+
text-decoration: initial !important;
18+
}

0 commit comments

Comments
 (0)