feat(links): added ofm option to style unresolved or broken links differently (#1992)

* feat: add option to disable broken wikilinks

* fix(style): update hover color for broken links and introduce new class

* feat: add "disableBrokenWikilinks" option to ObsidianFlavoredMarkdown
This commit is contained in:
Keisuke ANDO
2025-05-28 04:26:17 +09:00
committed by GitHub
parent c9349457ed
commit 51b43a2115
3 changed files with 26 additions and 2 deletions

View File

@ -91,7 +91,7 @@ a {
color: var(--secondary);
&:hover {
color: var(--tertiary) !important;
color: var(--tertiary);
}
&.internal {
@ -101,6 +101,15 @@ a {
border-radius: 5px;
line-height: 1.4rem;
&.broken {
color: var(--secondary);
opacity: 0.5;
transition: opacity 0.2s ease;
&:hover {
opacity: 0.8;
}
}
&:has(> img) {
background-color: transparent;
border-radius: 0;