feat: expose compact_tables option for markdown export#108
feat: expose compact_tables option for markdown export#108kristianQh wants to merge 1 commit intodocling-project:mainfrom
Conversation
|
❌ DCO Check Failed Hi @kristianQh, 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 commitRun this command: git commit --allow-empty -s -m "DCO Remediation Commit for kristianQh <kralleyh@gmail.com>
I, kristianQh <kralleyh@gmail.com>, hereby add my Signed-off-by to this commit: 54929a763367b0cae75420f6c334b42934a3962b"
git push🔧 Advanced: Sign off each commit directlyFor the latest commit: git commit --amend --signoff
git push --force-with-leaseFor multiple commits: git rebase --signoff origin/main
git push --force-with-leaseMore info: DCO check report |
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/
|
| ), | ||
| ] = "" | ||
|
|
||
| compact_tables: Annotated[ |
There was a problem hiding this comment.
Let's name the argument consistently as md_compact_tables
|
@kristianQh thanks for the contribution. Please see the feedback above about renaming the argument. Then please also sign off your commits as described in CONTRIBUTING.md. You can also apply a remediation commit as posted in the comment above. |
Description:
docling-core's
export_to_markdownandsave_as_markdownalready supporta
compact_tablesparameter that removes column padding from markdown tables,but there is currently no way to pass it through docling-jobkit's pipeline.
This PR adds a
compact_tablesfield toConvertDocumentsOptionsand threadsit through all export code paths:
_export_document_as_content(InBodyTarget / single-doc path)_export_documents_as_files(multi-doc / zip path)ResultsProcessor.process_documents(S3/target processor path)local.py,multiproc.py)docling_s3in_s3out.py)Defaults to
False, no behavior change for existing users.