Hello! I sincerely hope this hasn't been asked before. I searched through the following documents:
- https://docs.astro.build/en/core-concepts/astro-components/
- https://docs.astro.build/en/guides/markdown-content/
- https://mdxjs.com/docs/using-mdx/#components
- https://mdxjs.com/table-of-components/
And couldn't find my answer. I was excited to find out that I can use .mdx to create customer markdown component overrides. I wanted to add additional logic to my default anchor tags. So I did the following in one of my src/content/blog/*.mdx files:
import LinkButton from "@components/LinkButton.astro";
export const components = {a: LinkButton};
This worked beautifully, and made my markdown links render exactly as I wanted. However, the downside is that now I need to import / override every single blog post with these 2 lines. So my question is: Is there a way to configure this globally so I don't need to import / export these 2 lines in every single .mdx file?