Docx writer: properly handle nested comment spans.

Patch credit: @mmourino.

Closes #8189. Closes #6959.
This commit is contained in:
John MacFarlane
2025-10-15 23:33:04 +02:00
parent 80ccc78a52
commit d4dd5e9ab9
3 changed files with 23 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
```
% pandoc -t docx | pandoc -f docx -t markdown --track-changes=all
[This is the comment]{.comment-start id="1" author="Mike"
date="2020-12-17T16:53:00Z"} [Here is my reply]{.comment-start id="2"
author="Mike" date="2020-12-17T17:39:00Z"} This is the content being
commented on [[]{.comment-end id="2"}]{.comment-end id="1"}
^D
[This is the comment]{.comment-start id="1" author="Mike"
date="2020-12-17T16:53:00Z"} [Here is my reply]{.comment-start id="2"
author="Mike" date="2020-12-17T17:39:00Z"} This is the content being
commented on [[]{.comment-end id="2"}]{.comment-end id="1"}
```