Processes and resolves internal and external links, tracks outgoing links, and optionally adds external link icons.
npx quartz plugin add github:quartz-community/crawl-linksplugins:
- source: github:quartz-community/crawl-links
enabled: true
options:
markdownLinkResolution: shortestFor advanced use cases, you can override in TypeScript:
import * as ExternalPlugin from "./.quartz/plugins";
ExternalPlugin.CrawlLinks({
markdownLinkResolution: "shortest",
});| Option | Type | Default | Description |
|---|---|---|---|
markdownLinkResolution |
"absolute" | "relative" | "shortest" |
"absolute" |
How to resolve internal links. |
prettyLinks |
boolean |
true |
Whether to use pretty links. |
openLinksInNewTab |
boolean |
false |
Whether to open links in a new tab. |
lazyLoad |
boolean |
false |
Whether to lazy load links. |
externalLinkIcon |
boolean |
true |
Whether to add an external link icon. |
disableBrokenWikilinks |
boolean |
false |
When true, internal links whose resolved slug is not in ctx.allSlugs gain a broken CSS class (alongside internal) for styling. |
See the Quartz documentation for more information.
MIT