Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOC is missing when content imported via mdx #4414

Closed
msteller-connyun opened this issue Mar 12, 2021 · 1 comment
Closed

TOC is missing when content imported via mdx #4414

msteller-connyun opened this issue Mar 12, 2021 · 1 comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request

Comments

@msteller-connyun
Copy link

🐛 Bug Report

When an mdx file is imported into an other mdx file, the imported content is ignored by the TOC.

To Reproduce

  1. Create a mdx file with some headlines (#, ##)
  2. Import the mdx file into an other one and call the mdx file as a jsx component

main.mdx:

import Demo from './demo.mdx‘;

<Demo></Demo>

Expected behavior

The headers from demo.mdx should be visible in the TOC of main.mdx

Actual Behavior

TOC ignores demo.mdx, when imported.

Your Environment

"@docusaurus/core": "2.0.0-alpha.71",
"@docusaurus/preset-classic": "2.0.0-alpha.71",

@msteller-connyun msteller-connyun added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Mar 12, 2021
@slorber
Copy link
Collaborator

slorber commented Mar 12, 2021

Yes, this is a known issue I'd really like to get solved, but it does not seem easy to solve :'(

Duplicate of #3915

@slorber slorber closed this as completed Mar 12, 2021
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists in another issue or pull request and removed status: needs triage This issue has not been triaged by maintainers labels Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request
Projects
None yet
Development

No branches or pull requests

3 participants