Skip to content

Documentation for usage of custom components is sparse #86

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

Closed
alexerhardt opened this issue Dec 17, 2022 · 1 comment · Fixed by #87
Closed

Documentation for usage of custom components is sparse #86

alexerhardt opened this issue Dec 17, 2022 · 1 comment · Fixed by #87
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@alexerhardt
Copy link

Loving the library thus far, fantastic work.

I am a newcomer to the world of MDX and I've been trying to figure out a fairly simple task: how to map markdown to the custom components in my website (which uses a heavily themed MUI).

The Contentlayer official doc for this is here:
https://www.contentlayer.dev/docs/sources/files/mdx

However, the doc is very sparse, and delegates on mdx-bundler, which does not have very extensive documentation either.

Not even reading the MDX docs did I could find how to do this...

Finally I found an example in a GitHub repo of exactly what I wanted to do:
https://github.com/VdustR/example-material-ui-mdx/blob/master/src/components.js

I think this is going to be a common problem for a lot of newcomers - the markdown mappings will not map well to their site's design systems and it's something they will need to customize.

Contentlayer is a great framework for adopting MDX, maybe it should point to those resources more clearly?

@schickling schickling added the documentation Improvements or additions to documentation label Jan 16, 2023
@stale
Copy link

stale bot commented Mar 17, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@schickling schickling transferred this issue from contentlayerdev/contentlayer Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants