Obviously, I do not know how they do it. I'm just throwing an idea or two.
Think of it as bold text, not commenting. How would you overcome tag boundaries? You must end the bold before the closing tag and resume it in the new open tag.
Now you need to somehow group those (potentially fragmented) tags. This could probably be due to some kind of naming convention.
<ul> <li>This text <comment id="c1#0"> has been flagged for review.</comment></li> <li><comment id="c1#1">And this is more text</comment>to be reviewed.</li> </ul>
Sound reasonable? Or have I sniffed board markers for too long?
source share