If you convert a DOC file that has macros to DOCX it leaves macros and seems to give you a DOCM file that it renames to *.docx I would expect it to strip the macros and give me a docx or throw an error if it cannot. As of LibreOffice 5.3.6.1 it would strip macros. The command I am using is: soffice --headless --convert-to docx "Testing_doc_with_macros.doc"
Bug 108269's fix enabled roundtripping macros. Bug 125338 has been opened about macros persisting when saved from DOCM to DOCX, I have added the DOC case there as well, let's close this as dupe. *** This bug has been marked as a duplicate of bug 125338 ***