Support for .mdx files
As mentioned by this comment, .mdx files are not being fetched.
To make this work we'd need to update:
-
getDocumentBySlugto check formdxfiles in case themdversion is not available. -
list.tsx -
/edit-documet/index.tsx
I'm not entirely sure how the editor would handle .mdx files, so this might require some investigation.
Hey @avitorio I am interested in exploring this topic 😄
Hi @Bowens20832 , thanks for stepping up!
I think there are a few steps to this issues, this is just an inital idea:
1 - Make .mdx the default file type for Outstatic, with fallback support for .md
2 - Allow react components that are inside mdx files to be rendered in the editor.
3 - Expand the editor to use custom react components
Let me know if any of this aspects interest you. We use https://tiptap.dev/ for the editor. Feel free to fork the repo and star playing. Check out our contribution guidelines. I am here to help!
@avitorio Yes to all of the above! I think I can handle everything you mentioned, plus a bunch more 😄
I have some ideas and improvements for Outstatic, and I think we could collobarate together..
Would it be okay for me to schedule a time to chat with you from your calendar on Pacy.co?
Hey @Bowens20832, please send an email to [email protected]. We'll figure something out.
Hey @Bowens20832, please send an email to [email protected]. We'll figure something out.
Awesome! I'll send something over in a little bit 🚀

Is this feature prioritized? I absolutely adore Outstatic and think it has a lot of potential, but no .mdx support is the main thing stopping me from using it on actual projects.
Hey @dmarkbreiter yes it is. I have a solution almost ready for it but am just lacking the time to properly launch it. It may bring in some breaking changes and compatibility issues with older versions, so I think this will come in the next major update.
+1 this would be huge
+1
How far the progress of this feature has been going on? I'd love to contribute as well if you need additional hands
@wutsqo thanks for the offer. There's a big update coming soon.
Andre will the new update be forthcoming in the coming weeks or more months. MDX is very important to most for this. Just curious, thanks
Hey @DarkNeedle, it will be coming soon. No hard deadline but most likely mid-September to early October.