Can I decorate a Mark Node using Node Decorations


#1

Hello.

Is it possible to decorate a mark node using node decorations?

I would like to use the tilde CSS selector with marks as the point of reference… Inline decorations are nested so are not suitable.

Required : <span>Mark 1</span><span class='sample' >Mark 2</span>

Not suitable : <span>Mark 1</span><span><span class='sample'>Mark 2</span></span>


#2

No, those only work on nodes. I don’t think there’s currently a way to do what you’re asking.