| quartz/util/path.ts | ●●●●● patch | view | raw | blame | history |
quartz/util/path.ts
@@ -168,6 +168,9 @@ export function splitAnchor(link: string): [string, string] { let [fp, anchor] = link.split("#", 2) if (fp.endsWith(".pdf")) { return [fp, anchor === undefined ? "" : `#${anchor}`] } anchor = anchor === undefined ? "" : "#" + slugAnchor(anchor) return [fp, anchor] }