dependabot[bot]
2024-06-18 0a3be96dd6098026edc23a7f66029484c1e44551
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]
}