valentinnodan / mdx-intellij-plugin

MIT License
8 stars 2 forks source link

unable to use markdown preview #15

Open rwitchell opened 3 years ago

rwitchell commented 3 years ago

Hi there - great plugin - thank you for spending time to create it 🙂

when using the plugin with an .mdx file, i'm not getting the preview button in jetbrains IDE as I do with a .md file. Using a 2021.x build of jetbrains products.

Any thoughts?

prigara commented 3 years ago

Hello @rwitchell, this is intentional. Indeed, MDX files could be parsed and rendered by Markdown to some extend, treating JavaScript as text and ignoring JSX tags. However, it will not be an accurate preview and therefore it might be confusing for users. Adding an accurate preview is not possible either because it would require building the whole app. To sum up, I don't think it's possible for the IDE to show a preview for MDX files in the editor. We hope for your understanding.