-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Provide recma packages similar to remark #2030
Comments
I’ve been holding off because it would mean adding another org. 😅 |
I don’t need it per se, but it would make the tests nicer.
A plugin which makes all global variables available in This is really useful to use for example frontmatter data or the page title for the active page in |
Ah nice! We could start with |
It might be nice to extract the JSX parsing and stringifying into It appears there’s already a GitHub profile named recma. Maybe the recma ecosystem should be kept within the mdx-js organization then? Also I’d like to emphasize I don’t need it, but I think this would be nice to have. I believe this might encourage people to start making third party recma plugins. The concept of recma currently feels a bit more abstract than remark or rehype, because the ecosystem isn’t there yet. |
I’m not exactly sure where it was, but ± a year ago there was also a discussion of forking Us maintaining an org, and indeed having
Yeah. Though I also believe that that need for plugins, needs to be there for to warrant the time spent on making an ecosystem! |
As the author of the second only Recma plugin I've ever seen, I second this. I'm also using @remcohaszing's plugin, and it would have been quite pleasant to find both plugins I needed for my use case with just a cursory search through the Unified family of libraries. |
+1, i'd be interested for this as well. My need is a basic access to |
The utilities are already there btw: https://github.com/syntax-tree/esast-util-from-js, https://github.com/syntax-tree/estree-util-to-js. Making an org and these wrappers is the plan, but I’m rather busy updating the entire ecosystem currently! |
Done https://github.com/mdx-js/recma :) |
Initial checklist
Problem
I’ve just created a recma plugin (to be released soon!). Although this package is intended for use with MDX, it just uses the estree. Not all cases that should be, can be covered using MDX. Plugins may inject estree nodes that can’t usually be defined writing MDX syntax (I.e. unexported top-level variable declarations).
Solution
It would be nice if
recma
can be published as a set of individual packages, just likeremark
. So there would berecma
,recma-parse
, andrecma-stringify
(already part of@mdx-js/mdx
).I could publish this myself, but I think it’s good to keep this as part of the unified collective.
Alternatives
N/A
The text was updated successfully, but these errors were encountered: