Ask HN: How should I convert Microsoft Word documents to Markdown?
I took over a project that was built by an overseas team. They set up a data ingestion process. They have a step in the ingestion where they use Libre Office (in headless mode) to convert Microsoft Word documents to PDFs. Later we convert all PDFs to Markdown. They felt that it was best to convert everything to a PDF, and then convert all of the PDFs to Markdown.
What I notice is that LibreOffice can create very complex PDFs when the Microsoft Word document has:
1. tables
2. multiple columns
3. strikethrough text
I am thinking we should go straight from Microsoft Word to Markdown.
What is the right software for that?
9 comments
[ 1.4 ms ] story [ 38.0 ms ] threadhttps://gist.github.com/plembo/409a8d7b1bae66622dbcd26337bbb...
Microsoft OSS python: https://github.com/microsoft/markitdown
There seem to be many addons that enable this, and pandoc as others have suggested
I had it generating .docx the other day and it did pretty well, so I assume it understands the format just fine.
And they're excellent at markdown.
(source - I'm working on a docx MCP that abstracts OOXML complexity away from LLMs entirely)