docling icon indicating copy to clipboard operation
docling copied to clipboard

Markdown header levels are all the same

Open jiaboli007 opened this issue 1 year ago • 2 comments

Bug

image This is probably not a real bug but a feature request:

All headers in the generated markdown files are at the same level, i.e. ## <Header>.

For example, in the sample PDF to markdown conversion, section 3 has multiple sub-sections:

3 Processing pipeline

....

3.1 PDF backends

...

3.2 AI models

The correct header levels really should be something like this:

3 Processing pipeline

....

3.1 PDF backends

...

3.2 AI models

...

It would be great if the header level can be fixed, because this can keep the hierarchical structure of the original article.

Steps to reproduce

Just run the sample code of this repo. ...

Docling version

...

Python version

...

jiaboli007 avatar Dec 27 '24 02:12 jiaboli007

Yes, it would be great to have proper hierarchical headers!

jkwatson avatar Feb 04 '25 19:02 jkwatson

dupe of #287?

jkwatson avatar Feb 04 '25 19:02 jkwatson