Skip to content

Commit

Permalink
fix: avoid extra whitespace on footnote references
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Jun 6, 2024
1 parent 20f6191 commit 7939f69
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/content/footnote-reference.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ interface Props {
const { count } = Astro.props;
---

<a href={`#${createFootnoteContentId(count)}`} id={createFootnoteReferenceId(count)}>
<sup>{count}</sup>
</a>
{
/**
* Formatting is intentional to avoid non-sup whitespace of the link,
* which would also get an underline.
*/
}
<a href={`#${createFootnoteContentId(count)}`} id={createFootnoteReferenceId(count)}
><sup>{count}</sup></a
>

0 comments on commit 7939f69

Please sign in to comment.