fixed annoying bugs
This commit is contained in:
parent
cda1a3fb4c
commit
f82f102588
|
@ -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';
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -34,7 +34,6 @@ const components = {
|
|||
ol: NumberList,
|
||||
Footnote: LinkToFootnote,
|
||||
ShowableFigure: ShowableFigureComponent,
|
||||
InlineLink: Null,
|
||||
};
|
||||
|
||||
export default components;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue