[feature] return opening and closing marker
[fix] save comment ref
for range to make sure it's in dom