migration – How to generate WordPress core blocks markup programmatically?
I am migrating a site’s content to a newer WordPress-based site and I am able to parse the content to an array-like structure where I have HTML element info, related attributes, and data.
Now, I want to convert this information to WordPress block markup. So that I can import it as post content and later on site editor can edit the content using block editor. Any information that can help me achieve that will be appreciated. Thanks