Ok, that makes sense.
And just to make sure I have understood the transition from markRange to decorations correctly: Inline decorations are equivalent to what previously was markRange, but with the difference that I need to do the update for decorations myself whenever the document changes, right?