MDX와 리액트
Docusaurus has built-in support for MDX, which allows you to write JSX within your Markdown files and render them as React components.
Check out the MDX docs to see what fancy stuff you can do with MDX.
Debugging MDX
MDX 형식은 매우 엄격하여 컴파일 오류가 발생할 수 있습니다.
Use the MDX playground to debug them and make sure your syntax is valid.
정보
Prettier, the most popular formatter, supports only the legacy MDX v1. If you get an unintentional formatting result, you may want to add {/* prettier-ignore */}
before the problematic area, or add *.mdx
to your .prettierignore
, until Prettier has proper support for MDX v3. One of the main authors of MDX recommends remark-cli
with remark-mdx
.