You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you think it might be a good idea to allow overriding the AST parsers/transformers for configurability? If someone wanted to touch up the produced HTML they could simply add a transformer plugin to edit the resulting tree. I'm thinking something like this change.
I don't have strong opinions for how to configure use of plugins (where they should be placed, how they are fetched, etc.). I don't have a need for this, so this is more food for thought than anything else. Browsing through the other issues, I wonder if something like this might put the power in the end user's hands. The obvious downside is the potential for incompatibility.
Please let me know what you think.
Regards,
-Doug
The text was updated successfully, but these errors were encountered:
This is a good idea. The unifiedjs is so powerful because of the composable plugin system. We should take advantage of it. luckily we have plenty of examples to learn from (remark-toc, remark-react). We should create orga-toc for starters to take it for a spin. Will create a separate issue with more details in it.
Hey there,
Thanks again for an awesome project.
Do you think it might be a good idea to allow overriding the AST parsers/transformers for configurability? If someone wanted to touch up the produced HTML they could simply add a transformer plugin to edit the resulting tree. I'm thinking something like this change.
I don't have strong opinions for how to configure use of plugins (where they should be placed, how they are fetched, etc.). I don't have a need for this, so this is more food for thought than anything else. Browsing through the other issues, I wonder if something like this might put the power in the end user's hands. The obvious downside is the potential for incompatibility.
Please let me know what you think.
Regards,
-Doug
The text was updated successfully, but these errors were encountered: