docs(v2): add documentation about importing markdown#4958
docs(v2): add documentation about importing markdown#4958slorber merged 3 commits intofacebook:masterfrom
Conversation
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
|
✔️ [V2] 🔨 Explore the source changes: d4d95fb 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/60c87c93be205e0007fbc569 😎 Browse the preview: https://deploy-preview-4958--docusaurus-2.netlify.app |
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4958--docusaurus-2.netlify.app/ |
slorber
left a comment
There was a problem hiding this comment.
Thanks 👍 just added a warning for the TOC problem
Yep, I realized that as well when I was testing this feature... I'm still stuck with understanding how the MDX loader works, so can't help rn with this |
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
|
Thanks for prettier 😅 MDX basically converts md to a React component. In the end, Babel/Webpack just see a regular React comp. The playground might help to understand: https://mdxjs.com/playground/ |
Motivation
The website has a hidden Markdown page example. It includes an example of importing markdown, which is not documented anywhere else on the website.
On Discord people often ask about reusing Markdown files, and I have to give them links to this hidden file. It would be great if it can be documented in the actual documentation.
I'm not sure if I'm putting this section in the right place...
Have you read the Contributing Guidelines on pull requests?
Yep