How to unwrap content in an isolating node

I have an isolating node called “wrapper”. It’s basically a div. I have no problem using the wrap transform to go from examples like

<h1>Heading 1</h1>
<p>Paragraph 1</p>


  <h1>Heading 1</h1>
  <p>Paragraph 1</p>

I’ve tried a few different ways to use the lift transform to perform the inverse, but the lift transform doesn’t seem to work with isolating: true. Should I be trying to use the existing lift transform or do I need to come up with a custom transform of my own to remove the wrapper?

Are you sure you need isolating on this node?

If so, yes, you’ll need to implement a custom transformation to do the lifting. This doesn’t need to be as complicated as the general-purpose lift code, since it can make assumptions about your schema.

@marijn, thanks for quick response.

I’m still fairly new to Prosemirror, so I’m not 100% sure I need isolating. I think I do based on the feedback from my UX team where they want stricter boundaries on the wrapper, not unlike a table cell (as mentioned in the docs). However, I still have much to learn about the inner workings on the system, so I’m open to changing my mind as I learn more.

I will give the custom transform a shot. Thanks.