How to maintain order in docx when inserting elements using doc.element.body.append() and high level functions like doc.add_picture()
I am trying to create a Word document that is a mixture of inserting converted markdown strings and images. The file generates, however the markdown elements are included at the very end of the document, after the pictures. The best work around for converting markdown is included below (I’m also open to changing this). Here’s my code: