mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-06 13:53:16 +00:00
use posix style paths for all path ops
This commit is contained in:
parent
de72dd4e4a
commit
663c41fa41
7 changed files with 6 additions and 13 deletions
quartz/plugins/transformers
|
@ -76,7 +76,7 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
|
|||
// don't process external links or intra-document anchors
|
||||
if (!(isAbsoluteUrl(dest) || dest.startsWith("#"))) {
|
||||
dest = node.properties.href = transformLink(dest)
|
||||
const canonicalDest = path.normalize(joinSegments(curSlug, dest))
|
||||
const canonicalDest = path.posix.normalize(joinSegments(curSlug, dest))
|
||||
const [destCanonical, _destAnchor] = splitAnchor(canonicalDest)
|
||||
outgoing.add(destCanonical as CanonicalSlug)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue