如何在 mdx 文件中包含降价文件 (md)

How to include markdown file (md) inside mdx file

plain.md

# plain markdown

some.mdx

# some mdx file

include './plain.md'

结果文件

# some mdx file

# plain markdown

如何用 mdxjs 做这样的事情?

哦,在 their docs 中确实是这样。也称为嵌入。

import License from './license.md'
import Contributing from './docs/contributing.mdx'

# Hello, world!

<License />

---

<Contributing />