Converting HTML to Blocks JSON structure? Ideas?

I am currently not aware of preexisting script that does this, so I believe this is something you would have to create yourself.

The challenge would be parsing the preexisting html to json block supported content.

  • Blocks are full-width elements, usually at the root of the content. The available options are:
    • paragraph
    • heading (receives level)
    • list (receives format)
    • quote
    • code (receives plainText)
    • image (receives image)
    • link (receives url)
  • Modifiers are inline elements, used to change the appearance of fragments of text within a block. The available options are:
    • bold
    • italic
    • underline
    • strikethrough
    • code

I haven’t tried to do this yet, so not sure at level of complexity it would take.

You incremental strategy to update might be a better approach to get started with.