fixed annoying bugs

This commit is contained in:
Filipe Medeiros 2024-04-21 00:30:08 +02:00
parent cda1a3fb4c
commit f82f102588
Signed by: filipe
GPG key ID: 9533BD5467CC1E78
4 changed files with 6 additions and 10 deletions

View file

@ -3,7 +3,6 @@ import react from '@astrojs/react';
import keystatic from '@keystatic/astro';
import tailwind from '@astrojs/tailwind';
import flattenListItems from 'mdast-flatten-listitem-paragraphs';
import markdoc from '@astrojs/markdoc';
import mdx from '@astrojs/mdx';
const prod = process.env.NODE_ENV === 'production';

View file

@ -29,14 +29,13 @@ const footnoteCount = globalThis.footnoteCounts[Astro.params.slug!].content;
const english = Astro.url.toString().includes('blog/');
---
<sup>
<InlineLink
<sup
><InlineLink
class="text-sm"
href={`#${footnoteString}-${footnoteCount}`}
title={english
? 'Link to corresponding footnote'
: 'Ligação para a nota de rodapé correspondente'}
>[{footnoteCount}]</InlineLink
></sup
>
{footnoteCount}
</InlineLink>
</sup>

View file

@ -34,7 +34,6 @@ const components = {
ol: NumberList,
Footnote: LinkToFootnote,
ShowableFigure: ShowableFigureComponent,
InlineLink: Null,
};
export default components;

View file

@ -16,12 +16,11 @@ const components = {
p: FootnoteParagraph,
code: Null,
li: ListItem,
a: Null,
a: InlineLink,
ul: Null,
ol: Null,
ShowableFigure: Null,
Footnote: Footnote,
InlineLink: InlineLink,
};
export default components;