Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown header levels are all the same #652

Open
jiaboli007 opened this issue Dec 27, 2024 · 0 comments
Open

Markdown header levels are all the same #652

jiaboli007 opened this issue Dec 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jiaboli007
Copy link

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. ##

.

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 jiaboli007 added the bug Something isn't working label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant