Skip to content

Commit

Permalink
resolve footnote
Browse files Browse the repository at this point in the history
  • Loading branch information
namachan10777 committed Jun 15, 2024
1 parent 1c6f8cb commit 35430fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/mdx/anchor.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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") ? (
<a href={href} aria-label={label}>
<a id={id} href={href} aria-label={label}>
<slot />
</a>
) : (
<a href={href} aria-label={label} data-astro-prefetch>
<a id={id} href={href} aria-label={label} data-astro-prefetch>
<slot />
</a>
)
Expand Down

0 comments on commit 35430fe

Please sign in to comment.