Peter
2024-07-10 b7793bd856979d0515a75c4c7a322912bdb72602
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]
}