Oh right, I see. There’s not really any guarantee on which node is going to be picked in a situation like this. Your best bet would be to bind a custom command to Enter with a higher precedence than the default commands used for enter, and in that command function, check whether the cursor is in a doc_header, and if it is, implement the intended behavior (possibly using splitBlockAs as a primitive).