Reputation: 11859
So when parsing mdx, you typically use remark plugins for markdown, and rehype plugins for HTML. I see a third category called recma plugins. What does recma stand for and what is it? Google surprisingly has no results on this.
For example, this plugin: https://github.com/remcohaszing/recma-nextjs-static-props
Upvotes: 4
Views: 528
Reputation: 2074
Unless someone knows better, I assert that 'recma' is a cutsie overloading of the letter 'e' yielding Remark (re) and ECMAScript (ecma). I have an interest in this topic so I dug as deep as my free time would allow.
Here are the more citable references I was able to find:
recmaPlugins
: These are plugins that modify the output estree directly. This is useful for modifying or injecting JavaScript variables in your MDX files.getStaticProps
.getStaticProps
- exposing top-level identifiers.getStaticProps
function which exposes all top level identifiers. This means these variable are available in pages/_app.js.CAVEAT! I am new to the Node.js world and the Unified collective. Much of what I find seems to assume you are well steeped in the paradigm. This is unfortunate and it makes learning difficult - IMO.
Upvotes: 6