The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(translusion): block reference not being recognized. (#1274)

authored by

Emile Bangma and committed by
GitHub
f37dbe1a 247625c4

+1 -1
+1 -1
quartz/plugins/transformers/ofm.ts
··· 195 195 const [rawFp, rawHeader, rawAlias]: (string | undefined)[] = capture 196 196 197 197 const [fp, anchor] = splitAnchor(`${rawFp ?? ""}${rawHeader ?? ""}`) 198 - const blockRef = Boolean(anchor?.startsWith("^")) ? "^" : "" 198 + const blockRef = Boolean(rawHeader?.match(/^#?\^/)) ? "^" : "" 199 199 const displayAnchor = anchor ? `#${blockRef}${anchor.trim().replace(/^#+/, "")}` : "" 200 200 const displayAlias = rawAlias ?? rawHeader?.replace("#", "|") ?? "" 201 201 const embedDisplay = value.startsWith("!") ? "!" : ""