nordtheme / web

The official Nord website and documentation
https://www.nordtheme.com
MIT License
97 stars 24 forks source link

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

Closed arcticicestudio closed 5 years ago

arcticicestudio commented 5 years ago

During the migration to MDX 1.0.0 in #137 the now deprecated 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 should be renamed.