kentcdodds / mdx-bundler

🦤 Give me MDX/TSX strings and I'll give you back a component you can render. Supports imports!
MIT License
1.78k stars 75 forks source link

Run mdx-bundler starting from Markdown-produced HTML instead of MDX? #157

Open swamidass opened 2 years ago

swamidass commented 2 years ago

The use case is that I have HTML produced from markdown that I want to use as input to MDX-bundler. I'd like to skip the first step of converting markdown mast, and then hast/rhype. Instead, using just rehype-parse to generate the hast. Is there a way to configure mdx-bundler to do this?