Learn how to convert Word documents to markdown using Python: https://blog.aspose.com/2021/11/05/convert-word-to-markdown-using-python/
Last active
November 5, 2021 13:31
Convert Word Document to Markdown in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.words as aw | |
# load document | |
doc = aw.Document("document.docx") | |
# set options | |
saveOptions = aw.saving.MarkdownSaveOptions() | |
saveOptions.images_folder = "Images" | |
# save as markdown file | |
doc.save("document.md", saveOptions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.words as aw | |
# load document | |
doc = aw.Document("document.docx") | |
# save as markdown file | |
doc.save("document.md") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment