mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
fix: make callout detection case-insensitive (closes #171)
This commit is contained in:
parent
3dcc1f1106
commit
5c76d8dad9
3 changed files with 3 additions and 2 deletions
|
@ -82,6 +82,7 @@ blockquote[class*="-callout"] {
|
||||||
padding-bottom: 0.25em;
|
padding-bottom: 0.25em;
|
||||||
color: var(--dark);
|
color: var(--dark);
|
||||||
background-color: var(--lightgray);
|
background-color: var(--lightgray);
|
||||||
|
border-left: 6px solid var(--primary) !important;
|
||||||
& > p {
|
& > p {
|
||||||
border-top-right-radius: 5px;
|
border-top-right-radius: 5px;
|
||||||
padding: 0.5em 1em;
|
padding: 0.5em 1em;
|
||||||
|
|
|
@ -14,7 +14,7 @@ See [documentation on supported types and syntax here](https://help.obsidian.md/
|
||||||
|
|
||||||
## Showcase
|
## Showcase
|
||||||
|
|
||||||
> [!example] Examples
|
> [!EXAMPLE] Examples
|
||||||
>
|
>
|
||||||
> Aliases: example
|
> Aliases: example
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
{{ else}}
|
{{ else}}
|
||||||
{{ $inner = $inner | replaceRE `\[!([a-zA-Z]+)\]` `${1}` }}
|
{{ $inner = $inner | replaceRE `\[!([a-zA-Z]+)\]` `${1}` }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $inner = printf "blockquote class=\"%s-callout\"" $inner}}
|
{{ $inner = printf "blockquote class=\"%s-callout\"" $inner | lower}}
|
||||||
{{ $content = replace $content . $inner 1}}
|
{{ $content = replace $content . $inner 1}}
|
||||||
{{ $counter1 = add $counter1 1 }}
|
{{ $counter1 = add $counter1 1 }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
Loading…
Reference in a new issue