1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2026-06-04 05:20:35 +00:00

feat: convert broken wiki links to plain text instead of styled anchors

When disableBrokenWikilinks is enabled, wiki links to non-existent
pages now render as plain text rather than faded anchor tags.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-15 00:54:25 -05:00
parent e48fc95aaf
commit 37f78a3fe9
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -283,8 +283,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
const exists = ctx.allSlugs && ctx.allSlugs.includes(slug)
if (!exists) {
return {
type: "html",
value: `<a class=\"internal broken\">${alias ?? fp}</a>`,
type: "text",
value: alias ?? fp,
}
}
}