Astro can render custom components instead of default html, when processing mdx files (/en/guides/integrations-guide/mdx/#custom-components-with-imported-mdx).
It is possible to specify which custom component is required directly in the mdx file, as per this answer.
I would like to avoid having to repeat in every single mdx file. Is it possible to configure a custom component once for all, in an astro/starlight project?