From 35430fe256878a3a2eed9445c55780ba8c971048 Mon Sep 17 00:00:00 2001 From: "Masaki.Nakano" Date: Sat, 15 Jun 2024 22:12:43 +0900 Subject: [PATCH] resolve footnote --- src/components/mdx/anchor.astro | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/mdx/anchor.astro b/src/components/mdx/anchor.astro index 95fd6d6c..3333aabd 100644 --- a/src/components/mdx/anchor.astro +++ b/src/components/mdx/anchor.astro @@ -2,18 +2,19 @@ export interface Props { href: string; label?: string; + id?: string; } -const { href, label } = Astro.props; +const { href, label, id } = Astro.props; --- { href.startsWith("http") ? ( - + ) : ( - + )