Skip to content

Commit 85ea6d5

Browse files
Merge pull request #60 from morrowind-modding/fix-blockref-transclusions
Fix: Transcluding a block does not display content #1268
2 parents 3fa7e54 + f071849 commit 85ea6d5

File tree

1 file changed

+1
-1
lines changed
  • quartz/plugins/transformers

1 file changed

+1
-1
lines changed

quartz/plugins/transformers/ofm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
196196
const [rawFp, rawHeader, rawAlias]: (string | undefined)[] = capture
197197

198198
const [fp, anchor] = splitAnchor(`${rawFp ?? ""}${rawHeader ?? ""}`)
199-
const blockRef = Boolean(anchor?.startsWith("^")) ? "^" : ""
199+
const blockRef = Boolean(rawHeader?.match(/^#?\^/)) ? "^" : ""
200200
const displayAnchor = anchor ? `#${blockRef}${anchor.trim().replace(/^#+/, "")}` : ""
201201
const displayAlias = rawAlias ?? rawHeader?.replace("#", "|") ?? ""
202202
const embedDisplay = value.startsWith("!") ? "!" : ""

0 commit comments

Comments
 (0)