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 ?
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 ?
It seems that order in which they appear in schema definition specifies the order in which they will nest as well.
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.