Jacky Zhao
2023-07-24 55a1fb8c41b6a34cc5cdfc5ec2533ed1f642211d
quartz/plugins/transformers/links.ts
@@ -72,7 +72,8 @@
                typeof node.properties.href === "string"
              ) {
                let dest = node.properties.href as RelativeURL
                node.properties.className = isAbsoluteUrl(dest) ? "external" : "internal"
                node.properties.className ??= []
                node.properties.className.push(isAbsoluteUrl(dest) ? "external" : "internal")
                // don't process external links or intra-document anchors
                if (!(isAbsoluteUrl(dest) || dest.startsWith("#"))) {