mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
Link wikilinks to wiki clients
This commit is contained in:
@@ -24,7 +24,7 @@ func parseWikilinks(asciidoc string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
targetFormatted := strings.ToLower(strings.ReplaceAll(target, " ", "-"))
|
targetFormatted := strings.ToLower(strings.ReplaceAll(target, " ", "-"))
|
||||||
return fmt.Sprintf("link:/wiki/%s[%s]", targetFormatted, display)
|
return fmt.Sprintf("[.bg-lavender.dark:prose:text-neutral-50.dark:text-neutral-50.dark:bg-garnet.px-1]#%s# [.wikilinks]#(link:https://wikistr.com/%s[Wikistr], link:https://wikifreedia.xyz/%s[Wikifreedia])#", display, targetFormatted, targetFormatted)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use regex ReplaceAllStringFunc with the replacement function
|
// Use regex ReplaceAllStringFunc with the replacement function
|
||||||
|
|||||||
11
base.css
11
base.css
@@ -36,4 +36,15 @@
|
|||||||
animation: blink 1s infinite;
|
animation: blink 1s infinite;
|
||||||
color: rgb(222, 222, 222);
|
color: rgb(222, 222, 222);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wikilinks{
|
||||||
|
@apply text-neutral-500;
|
||||||
|
@apply dark:text-neutral-500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wikilinks a {
|
||||||
|
@apply text-neutral-500;
|
||||||
|
@apply dark:text-neutral-500;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user