Skip to content

Conversation

@lucaselvaggio
Copy link

This change introduces the disable_table_numparse parameter to MarkdownParams, enabling it to be passed through to the export_to_markdown function.
When set to True, this flag is forwarded to the tabulate function via disable_numparse, preventing automatic numeric parsing.

Previously, numeric values containing trailing zeros (e.g. "50.000") were automatically parsed and reformatted (e.g. to "50"), resulting in loss of precision in the Markdown table output. With this change, setting disable_table_numparse=True preserves the original formatting of numeric strings during Markdown export.

Issue ref: docling-project/docling#1891

By exposing this parameter, the implementation provides greater flexibility for different usage scenarios where numeric formatting preservation is required.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

DCO Check Failed

Hi @lucaselvaggio, your pull request has failed the Developer Certificate of Origin (DCO) check.

This repository supports remediation commits, so you can fix this without rewriting history — but you must follow the required message format.


🛠 Quick Fix: Add a remediation commit

Run this command:

git commit --allow-empty -s -m "DCO Remediation Commit for lucaselvaggio <[email protected]>

I, lucaselvaggio <[email protected]>, hereby add my Signed-off-by to this commit: 393809fa761ea9db6c13959684ccfed0c17a30a0"
git push

🔧 Advanced: Sign off each commit directly

For the latest commit:

git commit --amend --signoff
git push --force-with-lease

For multiple commits:

git rebase --signoff origin/main
git push --force-with-lease

More info: DCO check report

@dosubot
Copy link

dosubot bot commented Nov 5, 2025

Related Documentation

Checked 3 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@mergify
Copy link

mergify bot commented Nov 5, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

@lucaselvaggio lucaselvaggio changed the title Parameterized disable_numparse for MarkdownTableSerializer fix: parameterized disable_numparse for MarkdownTableSerializer Nov 5, 2025
I, lucaselvaggio <[email protected]>, hereby add my Signed-off-by to this commit: 393809fa761ea9db6c13D959684ccfed0c17a30a0

Signed-off-by: lucaselvaggio <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant