Open Zenahr opened 1 year ago
@ElecTreeFrying Haven't tested this yet but I think it works if you assign mdx to markdown in VSCode (in general). Maybe that's a good enough workaround?
@Zenahr Could you please confirm whether the import statements below are correct? I haven't researched this yet, but I am asking ChatGPT for help. My plan is to add support for these import statements first and then release the proper update after researching for MDX file imports.
JavaScript files (.js)
import moduleName from './module.js';
CSS files (.css)
import './styles.css';
Image files (.jpg, .png, .gif, .webp)
import myImage from './my-image.png';
JSON files (.json)
import data from './data.json';
YAML files (.yaml, .yml)
import data from './data.yml';
Markdown files (.md)
import myContent from './my-content.md';
Other MDX files
import MyComponent from './MyComponent.mdx';
Allow for handling MDX files just like Markdown files, essentially handling .mdx files just like .md already are being handled.
https://mdxjs.com/ https://docusaurus.io/docs/markdown-features/react
Most often, users would import images I think.