lambda-packages icon indicating copy to clipboard operation
lambda-packages copied to clipboard

Astro components from Remark plugin are not rendered in .mdx pages

Open fmonper1 opened this issue 3 years ago • 1 comments

What version of astro are you using?

1.2.4

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

I am trying to use the AstroAsides integration from the docs in my own site.

The integration works flawlessly in normal .md pages, but for .mdx pages, the directives get replaced by the correct code but the Aside component isnt being rendered.

This is the code for the integration https://github.com/withastro/docs/blob/main/integrations/astro-asides.ts

And the .mdx page returns the following html for the aside image

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-qhpm6w

Participation

  • [ ] I am willing to submit a pull request for this issue.

fmonper1 avatar Sep 15 '22 14:09 fmonper1