mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-01 06:28:14 +00:00
non-admonition callout fix
This commit is contained in:
parent
7c09627df4
commit
1da467d214
2 changed files with 5 additions and 3 deletions
quartz/plugins/transformers
|
@ -96,7 +96,7 @@ const calloutMapping: Record<string, keyof typeof callouts> = {
|
|||
|
||||
function canonicalizeCallout(calloutName: string): keyof typeof callouts {
|
||||
let callout = calloutName.toLowerCase() as keyof typeof calloutMapping
|
||||
return calloutMapping[callout]
|
||||
return calloutMapping[callout] ?? calloutName
|
||||
}
|
||||
|
||||
const capitalize = (s: string): string => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue