mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-07 14:16:40 +00:00
polish
This commit is contained in:
parent
b3480bdc49
commit
b90590b9f4
7 changed files with 24 additions and 8 deletions
quartz/plugins/transformers
|
@ -6,7 +6,7 @@ import isAbsoluteUrl from "is-absolute-url"
|
|||
|
||||
interface Options {
|
||||
/** How to resolve Markdown paths */
|
||||
markdownLinkResolution: 'absolute' | 'relative'
|
||||
markdownLinkResolution: 'absolute' | 'relative' | 'shortest'
|
||||
/** Strips folders from a link so that it looks nice */
|
||||
prettyLinks: boolean
|
||||
indexAnchorLinks: boolean
|
||||
|
@ -35,6 +35,7 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
|
|||
} else {
|
||||
return './' + relativeToRoot(curSlug, targetSlug)
|
||||
}
|
||||
// todo: handle shortest path
|
||||
}
|
||||
|
||||
const outgoing: Set<string> = new Set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue