Hi everyone,
I use Astro with mdx for my blog. Often I create additional Astro components that I include in my MDX file. For example I have as very specific table that can be generated by a list of headers and the rows will be auto populated by my component. Currently I pass these headers as a list of strings. For this specific component and many other the header is a mathematical expression. I can render math fine in mdx using $x+5$ and the mdx parser extensions. But how do I render them inside my astro component. I need a way of rendering a mdx string or passing already rendered content dynamically into my component. Normally we use slots for passing rendered content but slots do not support dynamic creation. I have an unknown amount of headers being passed into my component.
Any ideas?