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

Support remark/rehype/recma transformer plugins #297

Open
4 tasks done
remcohaszing opened this issue Feb 4, 2023 · 0 comments
Open
4 tasks done

Support remark/rehype/recma transformer plugins #297

remcohaszing opened this issue Feb 4, 2023 · 0 comments
Labels
🗄 area/interface This affects the public interface help wanted 🙏 This could use your insight or help 🙉 open/needs-info This needs some more info 🤞 phase/open Post is being triaged manually 🧒 semver/minor This is backwards-compatible change 🦋 type/enhancement This is great to have

Comments

@remcohaszing
Copy link
Member

Initial checklist

Problem

Currentle the language service only supports unified plugins that register micromark syntax extensions. It doesn’t support transformer plugins yet.

For example, remark-mdx-frontmatter, rehype-mdx-title, and recma-nextjs-static-props provide a transformers that injects ESM exports into the AST.

Solution

TypeScript needs to be aware of injected variables and their types. I don’t know how yet.

Alternatives

🤷

@remcohaszing remcohaszing added 🦋 type/enhancement This is great to have help wanted 🙏 This could use your insight or help 🗄 area/interface This affects the public interface 🧒 semver/minor This is backwards-compatible change 🙉 open/needs-info This needs some more info 🤞 phase/open Post is being triaged manually labels Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗄 area/interface This affects the public interface help wanted 🙏 This could use your insight or help 🙉 open/needs-info This needs some more info 🤞 phase/open Post is being triaged manually 🧒 semver/minor This is backwards-compatible change 🦋 type/enhancement This is great to have
Development

No branches or pull requests

1 participant