Nest replacement decoration at end of mark decoration

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?

Use inclusive: true on your mark decorations to make them span beyond points at their end position.

1 Like