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:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user