docs icon indicating copy to clipboard operation
docs copied to clipboard

Explain better processors creation for html2react

Open juanmaguitar opened this issue 4 years ago • 2 comments

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

juanmaguitar avatar Jun 12 '20 07:06 juanmaguitar

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>

nicholasio avatar Jun 12 '20 12:06 nicholasio

👍 Thanks a lot for your feedback @nicholasio

juanmaguitar avatar Jun 15 '20 08:06 juanmaguitar