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

Fix MDX v1 remark/rehype plugin loading after migration #145

Merged
merged 1 commit into from
May 21, 2019

Conversation

arcticicestudio
Copy link
Contributor

@arcticicestudio arcticicestudio commented May 21, 2019

Fixes #144

During the migration to MDX 1.0.0 (1) in GH-137 the now deprecated (2)
`mdPlugins` and `hastPlugins` options were not replaced with their
(new named) respective equivalents `remarkPlugins` and `rehypePlugins`.
Even if the documentation states that the options will be removed in v2
and are still supported (only showing a warning in the console when
still used), the defined plugins were not loaded anymore causing e.g.
no more automatic generation of `id` attributes for headers in MDX
content.

Therefore, to finish 100% of the migration, both options have been
renamed.

References:
  (1) https://mdxjs.com/blog/v1
  (2) https://mdxjs.com/blog/v1#deprecations

GH-144
@arcticicestudio arcticicestudio changed the title Fix MDX v1 remark/rehype plugin loading after migration Fix MDX v1 remark/rehype plugin loading after migration May 21, 2019
@arcticicestudio arcticicestudio merged commit 182f57f into develop May 21, 2019
@arcticicestudio arcticicestudio deleted the bugfix/gh-144-mdx-v1-plugin-loading branch May 21, 2019 11:59
@arcticicestudio arcticicestudio removed their assignment May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix MDX v1 remark/rehype plugin loading after migration
2 participants