Skip to content

Commit 6ac8a9e

Browse files
committed
Merge upstream changes
2 parents c92963d + 5ec6146 commit 6ac8a9e

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"mdast-util-to-hast": "^13.1.0",
5858
"mdast-util-to-string": "^4.0.0",
5959
"micromorph": "^0.4.5",
60-
"preact": "^10.19.6",
60+
"preact": "^10.20.1",
6161
"preact-render-to-string": "^6.4.0",
6262
"pretty-bytes": "^6.1.1",
6363
"pretty-time": "^1.1.0",
@@ -104,6 +104,6 @@
104104
"esbuild": "^0.19.9",
105105
"prettier": "^3.2.4",
106106
"tsx": "^4.7.1",
107-
"typescript": "^5.4.2"
107+
"typescript": "^5.4.3"
108108
}
109109
}

quartz/components/pages/FolderContent.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ export default ((opts?: Partial<FolderContentOptions>) => {
4747

4848
return (
4949
<div class={classes}>
50-
<article>
51-
<p>{content}</p>
52-
</article>
50+
<article>{content}</article>
5351
<div class="page-listing">
5452
{options.showFolderCount && (
5553
<p>

quartz/plugins/transformers/ofm.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
188188
const [raw]: (string | undefined)[] = capture
189189
let escaped = raw ?? ""
190190
escaped = escaped.replace("#", "\\#")
191-
escaped = escaped.replace("|", "\\|")
191+
// escape pipe characters if they are not already escaped
192+
escaped = escaped.replace(/((^|[^\\])(\\\\)*)\|/g, "$1\\|")
192193

193194
return escaped
194195
})

0 commit comments

Comments
 (0)