-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
feat(content): pass document data to remark plugins #782
Conversation
Could you add a small exemple in the docs regarding the remark plugins to understand the advantage of having the document data? |
I add a simple plugin:
SandBox: https://codesandbox.io/s/suspicious-leavitt-ygg26?file=/example/utils/contributors.js |
It looks great 😍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat!
Types of changes
Description
This is a proposal PR to inject document data into remark plugins. Plugins may read/modify document data.
resolves #781
Checklist: