microsoft / microsoft/markitdown

Titles and subtitles not recognized on docx documents

Open
#329 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
186k
Forks
13.7k
Avg merge
1d 4h
Merged PRs (30d)
49

Description

I was trying to convert this file using Python API :

Image

and i have this output :

Default paragraph style

title

subtitle

# heading 1

## heading 2

### heading 3

#### heading 4

block quotation

preformated text

body text

normal

Is there a way to preserve at least titles and subtitles information ?

documents : test.docx

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Python API conversion with the attached test.docx and compare the output for the title and subtitle paragraphs. Trace how DOCX paragraph styles are converted to Markdown, then verify that title and subtitle information is preserved in the resulting output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.