Support remark/rehype/recma transformer plugins #297
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
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
, andrecma-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
🤷
The text was updated successfully, but these errors were encountered: