diff --git a/src/pages/links/index.astro b/src/pages/links/index.astro index b14b5c9..0fd5b3e 100644 --- a/src/pages/links/index.astro +++ b/src/pages/links/index.astro @@ -12,7 +12,7 @@ const sections: Section[] = [{ name: '其他', links: [], contentLines: [] }]; let section = sections[0]; let shortcodeDepth = 0; const escapeHtml = (value: string) => value.replace(/[&<>"']/g, (character) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[character]!); -const renderNestedCard = (link: Link) => ``; +const renderNestedCard = (link: Link) => ``; for (const line of (page.body ?? '').split(/\r?\n/)) { if (/^\s*\[(?:collapse|hint|tip|tabs)\b[^\]]*\]\s*$/i.test(line)) { shortcodeDepth += 1; @@ -45,16 +45,16 @@ if (!sections[0].links.length && !sections[0].contentLines.some((line) => line.t