-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support MDX routes #6
Conversation
None of the nested routes work with MDX files. The top-level ones work, but that's Remix's normal behavior. Guess Remix's MDX support is taking precedence. |
Sorry, I don't use Remix's built-in MDX support, so never tested that... I'll see what I can do. |
Glad it worked! I’ll add a PR for the migrate tool too. |
Think I figured out my problem. I wanted to have a /reading and then a bunch of /reading/{...other stuff} routes. If I don't create a layout in reading, the sub-routes don't render. If I try to just have /reading/index.mdx, that becomes the layout and the sub-routes don't render. But I also can't just have reading.index/index.md. There must be a /reading/{_layout,_route,index} file to get anything to render. |
If you don't want the parent to be a layout, then you need to suffix it with
|
Because in flat-routes, So default convention |
Since MDX files can be routes, they should be supported.
Closes #5