docx-validate
    Preparing search index...

    Function removeAuthorTrackedChanges

    • Strip every w:ins authored by author (delete subtree) and unwrap every w:del authored by author (re-insert children at the deletion's old position, converting w:delText → w:t so the surviving text reads as plain run text). Mirrors _remove_author_tracked_changes in Python — the two-pass order matters: the ins pass must run first so a nested w:del inside an author w:ins is dropped with the wrapper instead of being unwrapped into the surrounding paragraph.

      Parameters

      • root: Element
      • author: string

      Returns void