Closed emmenko closed 4 years ago
I can confirm that this works out of the box. Example set up:
src/
content/
test.mdx
topics/
hello.mdx
In test.mdx
, simply import
---
title: Test
---
This is a test page
import Hello from '../topics/hello'
<Hello />
Something else.
In hello.mdx
Hello, world!
The output is:
MDX supports importing mdx and react components as react components:
https://mdxjs.com/getting-started#documents
Somehow it currently does not work in our setup.
Ref: #85