Skip to content

docs: use canonical markdown result property - #2259

Merged
afourney merged 2 commits into
microsoft:mainfrom
CooperSheroy:catalina/use-markdown-result-docs-20260730
Sep 2, 2026
Merged

docs: use canonical markdown result property#2259
afourney merged 2 commits into
microsoft:mainfrom
CooperSheroy:catalina/use-markdown-result-docs-20260730

Conversation

@CooperSheroy

Copy link
Copy Markdown
Contributor

Summary

  • update README Python snippets to print result.markdown instead of the soft-deprecated result.text_content alias
  • keep the PyPI package README example aligned with the top-level README and current DocumentConverterResult API

Verification

  • rg "result\.text_content|text_content" README.md packages/markitdown/README.md; test 0 -eq 1
  • rg "result\.markdown" README.md packages/markitdown/README.md -n

Note: a local import smoke test with python3 was blocked because this environment does not have the package dependency magika installed.

@sirrryasir Yasir Hassan (sirrryasir) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great catch! Updating the documentation to reflect the canonical markdown property makes it much clearer for new users. The changes look perfect.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The documentation-only updates are consistent and have no unresolved issues.

Pull request overview

Updates documentation examples to use the canonical DocumentConverterResult.markdown property.

Changes:

  • Replaces deprecated result.text_content usage.
  • Aligns top-level and package README examples.
File summaries
File Description
README.md Updates Python conversion examples to use result.markdown.
packages/markitdown/README.md Aligns the package example with the canonical API.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@afourney
afourney merged commit 20d06b6 into microsoft:main Sep 2, 2026
2 of 3 checks passed
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.

4 participants