Learn how to convert Word documents to Markdown in C#: https://blog.aspose.com/words/convert-word-doc-to-markdown-in-csharp/
Last active
July 19, 2023 05:41
-
-
Save aspose-com-gists/25a9ab1cf8da8a1e4c1772a67b52b2ef to your computer and use it in GitHub Desktop.
Convert Word Documents to Markdown in C#
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
// Load Word document | |
Document doc = new Document("document.docx"); | |
// Set Markdown options | |
MarkdownSaveOptions so = new MarkdownSaveOptions(); | |
so.ImagesFolder = "D:\\Images"; | |
// Save the document in Markdown format | |
doc.Save("word-to-markdown.md", so); |
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
// Load Word document | |
Document doc = new Document("document.docx"); | |
// Save the document in Markdown format | |
doc.Save("word-to-markdown.md"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment