We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fa7e54 + f071849 commit 85ea6d5Copy full SHA for 85ea6d5
quartz/plugins/transformers/ofm.ts
@@ -196,7 +196,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
196
const [rawFp, rawHeader, rawAlias]: (string | undefined)[] = capture
197
198
const [fp, anchor] = splitAnchor(`${rawFp ?? ""}${rawHeader ?? ""}`)
199
- const blockRef = Boolean(anchor?.startsWith("^")) ? "^" : ""
+ const blockRef = Boolean(rawHeader?.match(/^#?\^/)) ? "^" : ""
200
const displayAnchor = anchor ? `#${blockRef}${anchor.trim().replace(/^#+/, "")}` : ""
201
const displayAlias = rawAlias ?? rawHeader?.replace("#", "|") ?? ""
202
const embedDisplay = value.startsWith("!") ? "!" : ""
0 commit comments