The contents of footnotes, endnotes and comments were read with the namespace prefixes declared in word/document.xml rather than in their own parts. If word/footnotes.xml, word/endnotes.xml or word/comments.xml declared a prefix that document.xml did not, such as `r` or `m`, the elements using it were dropped: a hyperlink in a footnote lost its text, and an equation in an endnote or comment disappeared. They are now read with the namespace maps that archiveToNotes and archiveToComments already compute. Closes #11991. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1005 B
1005 B
Notes and comments are read with the namespace prefixes declared in
their own parts (word/footnotes.xml, word/endnotes.xml,
word/comments.xml). Here word/document.xml declares only w; the
footnote's hyperlink uses r, and the equations in the endnote and
the comment use m.
% pandoc command/11991.docx -t native --track-changes=all
^D
[ Para
[ Span
( ""
, [ "comment-start" ]
, [ ( "comment-id" , "0" )
, ( "author" , "A" )
, ( "date" , "2026-01-01T00:00:00Z" )
]
)
[ Str "Math:" , Space , Math InlineMath "x" ]
, Str "Text"
, Span
( "" , [ "comment-end" ] , [ ( "comment-id" , "0" ) ] ) []
, Note
[ Para
[ Str "See"
, Space
, Link
( "" , [] , [] )
[ Str "example" ]
( "https://example.com/" , "" )
]
]
, Note
[ Para [ Str "Math:" , Space , Math InlineMath "x" ] ]
]
]