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

How to register components with the MDX renderer? #89

Open
milgner opened this issue May 18, 2021 · 0 comments
Open

How to register components with the MDX renderer? #89

milgner opened this issue May 18, 2021 · 0 comments
Labels
type: feature request New feature or request

Comments

@milgner
Copy link
Contributor

milgner commented May 18, 2021

Description of issue

I want my MDX file to render a custom template component but it's not clear where I need to register it in order to make it available. Currently it says:

Component ADRList was not imported, exported, or provided by MDXProvider as global scope

Usage example

The project in question uses a multi-level structure which cannot (and should not) be represented through the sidebar.
Instead, I'd like to put documents into the directory and have the index file create a TOC for all other MDX files in the same directory. As such, I created a Gatsby template component that could be included in the MDX, but I don't know where to register it.

@jpedroschmitz jpedroschmitz added the type: feature request New feature or request label Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants