fix(translusion): block reference not being recognized. (#1274)
This commit is contained in:
		
							parent
							
								
									247625c4f5
								
							
						
					
					
						commit
						f37dbe1a59
					
				| @ -195,7 +195,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options> | ||||
|           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("!") ? "!" : "" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user