fix(translusion): block reference not being recognized. (#1274)
This commit is contained in:
		@@ -195,7 +195,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
 | 
				
			|||||||
          const [rawFp, rawHeader, rawAlias]: (string | undefined)[] = capture
 | 
					          const [rawFp, rawHeader, rawAlias]: (string | undefined)[] = capture
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          const [fp, anchor] = splitAnchor(`${rawFp ?? ""}${rawHeader ?? ""}`)
 | 
					          const [fp, anchor] = splitAnchor(`${rawFp ?? ""}${rawHeader ?? ""}`)
 | 
				
			||||||
          const blockRef = Boolean(anchor?.startsWith("^")) ? "^" : ""
 | 
					          const blockRef = Boolean(rawHeader?.match(/^#?\^/)) ? "^" : ""
 | 
				
			||||||
          const displayAnchor = anchor ? `#${blockRef}${anchor.trim().replace(/^#+/, "")}` : ""
 | 
					          const displayAnchor = anchor ? `#${blockRef}${anchor.trim().replace(/^#+/, "")}` : ""
 | 
				
			||||||
          const displayAlias = rawAlias ?? rawHeader?.replace("#", "|") ?? ""
 | 
					          const displayAlias = rawAlias ?? rawHeader?.replace("#", "|") ?? ""
 | 
				
			||||||
          const embedDisplay = value.startsWith("!") ? "!" : ""
 | 
					          const embedDisplay = value.startsWith("!") ? "!" : ""
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user