mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-18 14:34:23 +02:00
lint(links.ts): fix declarations
This commit is contained in:
parent
663607d296
commit
a010948644
@ -58,12 +58,12 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options>> = (userOpts)
|
||||
node.properties &&
|
||||
typeof node.properties.href === "string"
|
||||
) {
|
||||
let href = node.properties.href
|
||||
var dest = href as RelativeURL
|
||||
var refIcon: string | ElementContent | null = null
|
||||
var matched = false
|
||||
const href = node.properties.href
|
||||
let dest = href as RelativeURL
|
||||
let refIcon: string | ElementContent | null = null
|
||||
let matched = false
|
||||
opts.substitutions?.every(([regex, sub]) => {
|
||||
let parts = href.match(regex)
|
||||
const parts = href.match(regex)
|
||||
if (parts != null) {
|
||||
dest = parts.slice(1).join("") as RelativeURL
|
||||
if (typeof sub == "object") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user