How to customize footnote component in @astro/mdx
?
#1366
Unanswered
ngdangtu-vn
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I recommend not doing what you want to do. Turning footnotes from markdown into HTML is done by https://github.com/remarkjs/remark-rehype. See its docs. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to the document, I can do something like this:
It's great I'm looking for a way to customize the footnote components like about, I try with a few names and none of them work. Does anyone know how to overwrite the footnote components? I need to rewrite a whole html structure of these components (assume it has 2)
btw, it is not ideal to overwrite the html tag such as
sup
ora
as it can be used for other purposes (I even want to replacesection
tag as well)Beta Was this translation helpful? Give feedback.
All reactions