Skip to content

Update markitdown to 0.1.7 and enhance tests - #1974

Merged
bgruening merged 2 commits into
masterfrom
markitdown-test-enhancements
Aug 31, 2026
Merged

Update markitdown to 0.1.7 and enhance tests#1974
bgruening merged 2 commits into
masterfrom
markitdown-test-enhancements

Conversation

@bgruening

Copy link
Copy Markdown
Owner

Bump tool version to 0.1.7 and fix several wrapper bugs:

  • Fix broken --mime-type/--charset options (referenced undefined $mime_opt/$charset_opt variables); now wired to the correct params
  • Trim ext_map to only Galaxy datatypes that exist in datatypes_conf.xml (drop odt/ods/odp/rtf/bmp/webp/etc.)
  • Use detect_errors="aggressive" and add version_command
  • Use argument= on all params and standard output label

Expand tests from 5 to 18 with strict golden-file diffs for all deterministic formats (pdf, docx, pptx, xlsx, html, ipynb, csv, tsv, json, xml, txt, markdown) plus assert_contents for zip output and the previously-broken optional-flag code paths (--extension, --mime-type, --charset). Add --keep-data-uris coverage with a dedicated test fixture.

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

There are two labels that allow to ignore specific (false positive) tool linter errors:

  • skip-version-check: Use it if only a subset of the tools has been updated in a suite.
  • skip-url-check: Use it if github CI sees 403 errors, but the URLs work.

Bump tool version to 0.1.7 and fix several wrapper bugs:
- Fix broken --mime-type/--charset options (referenced undefined
  $mime_opt/$charset_opt variables); now wired to the correct params
- Trim ext_map to only Galaxy datatypes that exist in
  datatypes_conf.xml (drop odt/ods/odp/rtf/bmp/webp/etc.)
- Use detect_errors="aggressive" and add version_command
- Use argument= on all params and standard output label

Expand tests from 5 to 18 with strict golden-file diffs for all
deterministic formats (pdf, docx, pptx, xlsx, html, ipynb, csv, tsv,
json, xml, txt, markdown) plus assert_contents for zip output and the
previously-broken optional-flag code paths (--extension, --mime-type,
--charset). Add --keep-data-uris coverage with a dedicated test fixture.

@SaimMomin12 SaimMomin12 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment thread tools/markitdown/markitdown.xml Outdated
Co-authored-by: Saim Momin <64724322+SaimMomin12@users.noreply.github.com>
@bgruening
bgruening enabled auto-merge (squash) August 31, 2026 18:39
@bgruening
bgruening merged commit 7ada5ce into master Aug 31, 2026
10 checks passed
@bgruening
bgruening deleted the markitdown-test-enhancements branch August 31, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants