How to configure (nesting) order of marks?

Guide does mention following:

The order in which marks appear is specified by the schema.

But then I can’t find anywhere in the guide or docs how that order can be specified ?

1 Like

It seems that order in which they appear in schema definition specifies the order in which they will nest as well.

1 Like

Exactly. The OrderedMap type is written so that even when messing with a set of marks after the fact, you can still control their order.

2 Likes

Just discovered this! The level of thought that went into building prosemirror is unbelievable!