Closed mxschmitt closed 2 years ago
@shuding I tried to import an mdx
and md
file from within my mdx
but didn't seem to work. Is it supported? Looking to have support for partials so that I can import other files like this.
---
id: typescript-react-apollo
title: TypeScript React Apollo
---
import '../plugins/client-note.md'
import '../generated-config/typescript-react-apollo.md'
## Usage Example
### With React Hooks
@tvvignesh Unfortunately that's not supported, you can only import React components currently.
@shuding Thanks for letting me know 👍 Any way that we can use remark plugins to do this? For instance, https://github.com/dotansimha/remark-import-partial is a remark plugin which helps importing partials. Was not able to find any docs on using such plugins with Nextra. Possible? Thanks.
@shuding any updates for this one? In v2?
It would be useful if
withLayout
would be kinda exposed so importing an existing markdown file on the disk from the parent directory e.g. could be imported without relying onnext-mdx-remote
.