docs
docs copied to clipboard
Explain better processors creation for html2react
Overall, I think the documentation needs to improve, very few packages have a useful README.md (but I did notice a couple of PR related to this). I tried implementing a new processor for html2react along with a custom component and it wasn’t very clear on how it should be done (I eventually figured it out :slight_smile:)
https://community.frontity.org/t/10up-frontity-review-feedback/2064
A few things come to mind
- A couple of examples of how to test/select a node, for example getting all nodes with a specific class name or id, or all nodes within a specific tag and class name that have children, etc.
- How to create a processor that replaces a HTML element with children, example:
<blockquote>text</blockquote>
=><Blockquote>text</Blockquote>
👍 Thanks a lot for your feedback @nicholasio