-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat(cli): add --image-alt-mode option for markdown image alt text #2828
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
base: main
Are you sure you want to change the base?
Conversation
|
✅ DCO Check Passed Thanks @s1v4-d, all your commits are properly signed off. 🎉 |
|
MyPy pre-commit check fails because this PR depends on docling-project/docling-core#463 being merged first. Once that's merged and docling-core is updated, mypy will pass. |
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Thanks @s1v4-d for the interesting idea. First of all, some relevant context: the annotation & caption info (as available) is anyway shown by the serializer in the normal "flow", i.e. outside the link text. Therefore, displaying it again as the link text (i.e. what goes in What would be a valid alternative is just parametrizing the text that's currently hard-coded to "Image" in |
sure thing |
Adds support for the new image_alt_mode parameter from docling-core, allowing users to choose how alt text is generated for images in markdown export: static, caption, or description. Closes docling-project#2803 Signed-off-by: s1v4-d <leelasaisivasubrahmanyamdurga@gmail.com>
Signed-off-by: s1v4-d <leelasaisivasubrahmanyamdurga@gmail.com>
Adds a CLI option to customize the alt text for images in markdown output. This replaces the default 'Image' text in markdown image links like . Note: Full functionality requires docling-core to add image_alt_text parameter support. Closes docling-project#2803 Signed-off-by: s1v4-d <leelasaisivasubrahmanyamdurga@gmail.com>
fa34ba4 to
c901462
Compare
|
Run examples pipelines would pass once the pr on docling-core is merged and released. |
|
Would this feature only be available on the CLI? |


Adds support for the new image_alt_mode parameter from docling-core, allowing users to choose how alt text is generated for images in markdown export: static, caption, or description.
Closes #2803
Checklist: