fix scanning for tags in content

This commit is contained in:
Jacky Zhao committed 2023-08-11 23:40:06 -07:00
1 parent ed62ece491
commit 83269ac26e
3 files changed
+4 -5

No files matched your search

+2 -1
View File
@@ -86,7 +86,8 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
if (
opts.prettyLinks &&
node.children.length === 1 &&
node.children[0].type === "text"
node.children[0].type === "text" &&
!node.children[0].value.startsWith("#")
) {
node.children[0].value = path.basename(node.children[0].value)
}