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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(gatsby-plugin-mdx): Add comment why rehype-slug is required #32128

Merged

Conversation

justinyaodu
Copy link
Contributor

Documentation

I added a comment describing why rehype-slug is required in this example config, which illustrates the use of rehype plugins with gatsby-plugin-mdx. I was referencing this example earlier today, but I missed the require line for rehype-slug, which caused rehype-autolink-headings to do nothing. Apparently, this has happened to someone else as well; see StackOverflow.

I realize that this example config is perhaps intended to illustrate the use of rehype plugins in general, not rehype-autolink-headers specifically. I thought I'd put it out here though, and let you all decide 馃檪

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 26, 2021
@LekoArts LekoArts changed the title Add comment describing why rehype-slug is required chore(gatsby-plugin-mdx): Add comment why rehype-slug is required Jun 28, 2021
Copy link
Contributor

@LekoArts LekoArts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@LekoArts LekoArts added topic: remark/mdx Related to Markdown, remark & MDX ecosystem and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jun 28, 2021
@LekoArts LekoArts merged commit 3f3d5c8 into gatsbyjs:master Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: remark/mdx Related to Markdown, remark & MDX ecosystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants