>Just for the avoidance of doubt, I realize that this entire situation could be
avoided by using tools meant for the job.
No, this situation could be avoided if Microsoft would actually correctly implement their own fucking pseudo-standard. Not that this is possible, of course, since the 600+ page behemoth that is OOXML is stock full of inconsistencies, contradictions, and missing details.
Oh, and of course there is ODF, which is just plain better than OOXML. If that doesn't work, there is again just a single entity at fault: Microsoft. So don't blame LibreOffice for shortcomings of Microsoft Office and start demanding Microsoft to get their shit together.