Skip to content

Create comments from processing instructions- LEAN-993 & LEAN-992

This is another try to fix the position of the comments.

In this MR we are going with not using highlight markers for 2 reasons:

  • To stay consistent with the mechanism designed by Casey for tracking comments (MAN-671)
  • To not depend on the frontend for doing the position calculations.

So the idea in this MR is to calculate the position by finding the parent node position relative to the whole article and then adding it to the comment's position (in contents as text, not HTML) relative to the comment parent node.

Merge request reports