Node text inside handler of migrating-content-to-structured-text

Hi,

We are converting html string to structured text using below tool

On the handlers we are using below code

table: async (createNode, node, context) => {
            // our code block
          }

Is it possible to get the html string of that specific node inside this handler block?
For example:

table: async (createNode, node, context) => {
            // our code block
            const nodeText = node.outerHTML
          }

or similar to that?

Thanks,
Jyotirmoy Biswas

Sorry @jyoti, I don’t think it’s available per-se. But node is an HAST node, so you can use ie. https://github.com/syntax-tree/hast-util-to-html to convert it into HTML I think!