hcplantern
2023-09-12 a19df64be8423063c2484ab35300fb0bef324a14
fix: callout parsing (#469)

1 files modified
4 ■■■ changed files
quartz/plugins/transformers/ofm.ts 4 ●●● patch | view | raw | blame | history
quartz/plugins/transformers/ofm.ts
@@ -69,6 +69,8 @@
const calloutMapping: Record<string, keyof typeof callouts> = {
  note: "note",
  abstract: "abstract",
  summary: "abstract",
  tldr: "abstract",
  info: "info",
  todo: "todo",
  tip: "tip",
@@ -96,7 +98,7 @@
function canonicalizeCallout(calloutName: string): keyof typeof callouts {
  let callout = calloutName.toLowerCase() as keyof typeof calloutMapping
  return calloutMapping[callout] ?? calloutName
  return calloutMapping[callout] ?? "note"
}
const capitalize = (s: string): string => {