{"repo":"happyprime/wphtml-converter","free":true,"listed":false,"github":"https://github.com/happyprime/wphtml-converter","clone":"git clone https://github.com/happyprime/wphtml-converter.git","description":"Converts WPHTML (WordPress block markup) to its JS/JSON or PHP forms.","language":"JavaScript","stars":66,"topics":["wordpress","wordpress-blocks"],"license":null,"category":"self-hosted-apps","readme_excerpt":"WPHTML Converter WPHTML is a page that converts WPHTML (WordPress block markup) to its JS/JSON or PHP forms. https://happyprime.github.io/wphtml-converter/ It parses WPHTML into JS/JSON with a direct copy of Gutenberg's (GPL 2.0 or later licensed) Block Serialization Default Parser. What is it? When first building a template of blocks to be used as part of a block varation or other template, it is useful to do this work in the block editor. This results in markup like: When adding the template to JavaScript in an innerBlocks property, it needs to be formatted like: And when adding it to PHP, it needs to be formatted like: As your templates get more complicated, so does this translation—when done manually. So, copy some block markup, open WPHTML Converter, paste, and click. 🕺","default_branch":null,"files":null,"tree":[],"storefront":"/r/happyprime","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/happyprime/wphtml-converter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}