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.
1 parent aa4f529 commit 5ec6146Copy full SHA for 5ec6146
quartz/plugins/transformers/ofm.ts
@@ -188,7 +188,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
188
const [raw]: (string | undefined)[] = capture
189
let escaped = raw ?? ""
190
escaped = escaped.replace("#", "\\#")
191
- escaped = escaped.replace("|", "\\|")
+ // escape pipe characters if they are not already escaped
192
+ escaped = escaped.replace(/((^|[^\\])(\\\\)*)\|/g, "$1\\|")
193
194
return escaped
195
})
0 commit comments