This commit is contained in:
semanticdata 2024-04-01 08:29:04 -05:00
commit 401e700237
2 changed files with 3 additions and 4 deletions

View File

@ -52,9 +52,7 @@ export default ((opts?: Partial<FolderContentOptions>) => {
return (
<div class={classes}>
<article>
<p>{content}</p>
</article>
<article>{content}</article>
<div class="page-listing">
{options.showFolderCount && (
<p>

View File

@ -202,7 +202,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<
const [raw]: (string | undefined)[] = capture
let escaped = raw ?? ""
escaped = escaped.replace("#", "\\#")
escaped = escaped.replace("|", "\\|")
// escape pipe characters if they are not already escaped
escaped = escaped.replace(/((^|[^\\])(\\\\)*)\|/g, "$1\\|")
return escaped
})