Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I saw that Termwind has some default renderers for some elements:
TableRenderer
PreRenderer
CodeRenderer
The purpose of this PR is to allow users to register Custom Renderers if they want. This can be a nice addition for developers that want to create plugins, so they can create their own custom renderers.
The general idea is to have a new contract
Renderer
that must be implemented for all renderers and the actual render will be done by the new classElementRenderer
that can be used to register new renderers and to use the registered renderers to render the content.I'm marking this as a Draft because I still need to know if this is something that you want to have in the project and if so I can work on modifying anything that's not "compatible" with what you're thinking for the project.
If this is not something you want in the project feel free to decline this, but if you think this can work, I'll be happy to work on any changes needed to have this merged. 😉 💪🏼 🔥