outstatic icon indicating copy to clipboard operation
outstatic copied to clipboard

Support for .mdx files

Open avitorio opened this issue 2 years ago • 13 comments

As mentioned by this comment, .mdx files are not being fetched.

To make this work we'd need to update:

  • getDocumentBySlug to check for mdx files in case the md version 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.

avitorio avatar Nov 24 '22 12:11 avitorio

Hey @avitorio I am interested in exploring this topic 😄

Bowens20832 avatar Jun 14 '23 03:06 Bowens20832

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 avatar Jun 14 '23 10:06 avitorio

@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?

Bowens20832 avatar Jun 15 '23 02:06 Bowens20832

Hey @Bowens20832, please send an email to [email protected]. We'll figure something out.

avitorio avatar Jun 15 '23 14:06 avitorio

Hey @Bowens20832, please send an email to [email protected]. We'll figure something out.

Awesome! I'll send something over in a little bit 🚀

image

Bowens20832 avatar Jun 15 '23 17:06 Bowens20832

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.

dmarkbreiter avatar Jan 24 '24 23:01 dmarkbreiter

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.

avitorio avatar Jan 25 '24 02:01 avitorio

+1 this would be huge

pan-tales avatar Mar 06 '24 07:03 pan-tales

+1

kaziridwan avatar Jun 04 '24 12:06 kaziridwan

How far the progress of this feature has been going on? I'd love to contribute as well if you need additional hands

wutsqo avatar Aug 10 '24 10:08 wutsqo

@wutsqo thanks for the offer. There's a big update coming soon.

avitorio avatar Aug 20 '24 23:08 avitorio

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

DarkNeedle avatar Aug 28 '24 14:08 DarkNeedle

Hey @DarkNeedle, it will be coming soon. No hard deadline but most likely mid-September to early October.

avitorio avatar Aug 28 '24 15:08 avitorio