Optional
config: UpdateSpansConfigLike updateText this will diff newSpans
against the current state
of the text at path
and perform a reasonably minimal number of operations
required to update the spans to the new state.
When updating spans, we need to know what to set the "expand" behavior of
newly created marks to. By default we set it to "both", meaning that the
spans will expand on either, but this can be overridden by passing
{ defaultExpand: "<expand>"}
as the final config
parameter. You
can also pass {perMarkExpand: {"<markname>": "<expand config>"}
to
set the expand configuration for specific marks where it should be
different from the default.
Update the spans at the given path