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

Headings in nested content not included in TOC #1540

Closed
WCByrne opened this issue Feb 22, 2023 · 4 comments · Fixed by #2199
Closed

Headings in nested content not included in TOC #1540

WCByrne opened this issue Feb 22, 2023 · 4 comments · Fixed by #2199
Assignees
Labels
bug Something isn't working

Comments

@WCByrne
Copy link

WCByrne commented Feb 22, 2023

To better organize our project, I started breaking up pages in to smaller mdx files but I noticed that any headings are not rendered in the table of contents.

For example, in a page I might have:

import { UploadFile } from "../components/uploadFile.mdx";

# Creating Content

Create new content via out API...

<UploadFile />

If uploadFile.mdx contains headings, such as the following, they are not included in the TOC.

## Uploading a file

To upload a file do this...

Any workarounds for this?

@dimaMachina
Copy link
Collaborator

This is a known limitation, a similar issue to facebook/docusaurus#3915

Unfortunately, there is no workaround at the moment

@dimaMachina dimaMachina added the bug Something isn't working label Feb 22, 2023
@WCByrne
Copy link
Author

WCByrne commented Feb 23, 2023

Copy that. Thanks.

@dimaMachina
Copy link
Collaborator

@WCByrne happy to say that I fixed this confusing behaviour!

image image image image

@WCByrne
Copy link
Author

WCByrne commented Aug 31, 2023

Great! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants