How to builld a plugin #5
Replies: 2 comments 5 replies
-
Cool to hear! :) I don’t know exactly how everything should work and look. So for now I’ve just kept everything private. Are you using treesitter? Something else?
I think exposing
We could maybe add an I wonder if I should change the ASTs used here to a mdxjs-rs/src/mdast_util_to_hast.rs Lines 1197 to 1222 in 4a861dc |
Beta Was this translation helpful? Give feedback.
-
I just came around this project and the first thing I thought is: "let me build plugins for it now"! I think having mdast, hast and recma plugins be just functions that return a new tree would be more than enough for a plugin system, similar to unified plugins. Maybe something like this in the configuration:
Or maybe even supports both signatures of |
Beta Was this translation helpful? Give feedback.
-
Hi
I know that at the moment there isn't a plugin system but i am working on a
highlighter
plugin (not public yet). In this moment if i want to run this plugin i have to fork the repo and add a new phase to the compile function like this:In order to build my plugin i need the
hast
definitions to create the needed html code (because i decided to build in this phase) but i need to export in the fork too because now they are not public.Do you have plans on exporting structs to allow building plugins at html level?
If i publish my crate it won't be possible to use unless you add it in the compile function, is it something you are open to do until a plugin system is implemented?
Beta Was this translation helpful? Give feedback.
All reactions