mirror of https://github.com/logos-co/roadmap.git
parent
7f9f58860d
commit
de2b6b9a1b
|
@ -619,3 +619,7 @@ header {
|
|||
}
|
||||
}
|
||||
|
||||
mark {
|
||||
background-color: var(--highlighted);
|
||||
color: var(--gray);
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
--lightgray: #f0f0f0;
|
||||
--outlinegray: #dadada;
|
||||
--million-progress-bar-color: var(--secondary);
|
||||
--highlighted: #f5dfaf88;
|
||||
}
|
||||
|
||||
[saved-theme="dark"] {
|
||||
|
@ -23,6 +24,7 @@
|
|||
--gray: #d4d4d4 !important;
|
||||
--lightgray: #292633 !important;
|
||||
--outlinegray: #343434 !important;
|
||||
--highlighted: #574010;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -96,4 +96,11 @@
|
|||
{{ $content = $content | replaceRE "blockquote class=callout" "blockquote" }}
|
||||
{{end}}
|
||||
|
||||
{{/* Make ==text== into <mark>text</mark> */}}
|
||||
{{$mark := findRE "(?Us)==([^\\$]+)==" $content}}
|
||||
{{range $mark}}
|
||||
{{$fixed := printf "<mark>%s</mark>" (replace . "==" "")}}
|
||||
{{$content = replace $content . $fixed}}
|
||||
{{end}}
|
||||
|
||||
{{ $content | safeHTML }}
|
||||
|
|
Loading…
Reference in New Issue