Emile Bangma
2024-07-14 f37dbe1a591af204b09ab1664b9ff9da5b5ec46d
fix(translusion): block reference not being recognized. (#1274)

1 files modified
2 ■■■ changed files
quartz/plugins/transformers/ofm.ts 2 ●●● patch | view | raw | blame | history
quartz/plugins/transformers/ofm.ts
@@ -195,7 +195,7 @@
          const [rawFp, rawHeader, rawAlias]: (string | undefined)[] = capture
          const [fp, anchor] = splitAnchor(`${rawFp ?? ""}${rawHeader ?? ""}`)
          const blockRef = Boolean(anchor?.startsWith("^")) ? "^" : ""
          const blockRef = Boolean(rawHeader?.match(/^#?\^/)) ? "^" : ""
          const displayAnchor = anchor ? `#${blockRef}${anchor.trim().replace(/^#+/, "")}` : ""
          const displayAlias = rawAlias ?? rawHeader?.replace("#", "|") ?? ""
          const embedDisplay = value.startsWith("!") ? "!" : ""