docusaurus/packages/docusaurus-utils-validation
Alois Klink 4d2ab826b8
fix(validation): allow non-object params to remark/rehype plugins (#6977)
Remark and Rehype plugins allow having options as a non-object type,
such as a string.

For instance, the official MDX docs even have an example of this:
See https://mdxjs.com/docs/extending-mdx/#using-plugins

The official plugin `remarkjs/remark-frontmatter` allows passing
a string, e.g. `"toml"` as the options arg, instead of an object.
2022-03-24 09:19:06 +08:00
..
src fix(validation): allow non-object params to remark/rehype plugins (#6977) 2022-03-24 09:19:06 +08:00
.npmignore
README.md
package.json chore: prepare v2.0.0-beta.17 release (#6829) 2022-03-03 18:44:41 +01:00
tsconfig.json

README.md

@docusaurus/utils-validation

Node validation utility functions for Docusaurus packages.