Files
pandoc/test/command/6959.md
T
John MacFarlane b4cf3db71f Docx reader/writer: use comment-id instead of id in AST for comments.
Using "id" causes problems in some cases, because of overlap with
the id part of pandoc attributes.

Note that the Docx writer will still interpret an "id" attribute for
legacy compatibility, so if you use markdown files that specify "id",
they should still work.
2026-09-28 09:54:47 -07:00

628 B

% pandoc -t docx -o - | 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 comment-id="1" author="Mike"
date="2020-12-17T16:53:00Z"} [Here is my reply]{.comment-start
comment-id="2" author="Mike" date="2020-12-17T17:39:00Z"} This is the
content being commented on [[]{.comment-end
comment-id="2"}]{.comment-end comment-id="1"}