Higher precedent replacement decorations are correctly nesting inside lower precedent mark decorations, except when the replacement decoration occurs at the end of the mark decoration.
In the screenshot above, the grey comment boxes are mark decorations and the digits are replacement decorations. They nest correctly except the digit at the end of the first line should be inside the grey box.
Here’s a (minimal?) code repro
Any suggestions?