Per the title of my question, I'm struggling to get all the headings from an MDX file.
Using the recommended useContent hook only works if the heading is explicitly typed in the file. However, if you return a JSX component with the same content, the headings won't be read by the useContent hook.
So for example the first code would work but the second one won't:
## I'm a good heading!!!
<BadHeading />
I'm not aware of any alternative solutions to this problem that don't require eager access to the DOM. Is there an alternative hook or API I could use on the qwik-city side of things to read all the headings from the file?