A recent article failed to generate XML from the .docx file, the reasons centred around a figure caption, how it was parsed, and how the asset xref tag highlighting logic was confused by trying to search for a blank figure label in paragraph text.
Code here includes the fixes and two test cases for these situations.
Re issue https://github.com/elifesciences/issues/issues/5874
A recent article failed to generate XML from the
.docx
file, the reasons centred around a figure caption, how it was parsed, and how the asset xref tag highlighting logic was confused by trying to search for a blank figure label in paragraph text.Code here includes the fixes and two test cases for these situations.