That’s not really supported by ProseMirror’s mark model. toggleMark should work if you immediately type after toggling, but since marks are stored on inline content, they won’t get attached to block nodes. You could add attributes for this to your textblock nodes, and override styling for the first character that is typed into them with appendTransaction, but that’s somewhat involved.