Skip to content
Discussion options

You must be logged in to vote

As far as I know, Microsoft doesn’t provide a ready-made library that converts DOCX to Markdown while also including headers and footers. The closest is the Open XML SDK, which gives full access to all parts of a DOCX (including headers/footers), but you’d need to build the Markdown conversion layer yourself. Outside of Microsoft tools, the most reliable option is Pandoc, which does handle headers/footers and generally produces better Markdown output. If you’re already in Python, python-docx is another option for extracting everything and then formatting to Markdown manually.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@davidrendall
Comment options

@alishanawer
Comment options

Answer selected by davidrendall
@davidrendall
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants