Ben Schlegel
2023-09-29 0b61f6fbfd20556102ce23444ae7eb9348472952
quartz/plugins/transformers/ofm.ts
@@ -14,6 +14,7 @@
import { toHast } from "mdast-util-to-hast"
import { toHtml } from "hast-util-to-html"
import { PhrasingContent } from "mdast-util-find-and-replace/lib"
import { capitalize } from "../../util/lang"
export interface Options {
  comments: boolean
@@ -104,10 +105,6 @@
  return calloutMapping[callout] ?? "note"
}
const capitalize = (s: string): string => {
  return s.substring(0, 1).toUpperCase() + s.substring(1)
}
// !?               -> optional embedding
// \[\[             -> open brace
// ([^\[\]\|\#]+)   -> one or more non-special characters ([,],|, or #) (name)