Add a register method to NodeType and StyleType constructors
Add a register method to NodeType and StyleType constructors

To provide a generic way of pushing stuff to prototype arrays

And use this mechanism in DOM and Markdown parsing

ProseMirror/prosemirror-model