Skip to content
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

Enhance _markitdown.py to support embedding images in markdown #205

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MauroDruwel
Copy link

This update enhances the DocxConverter class by adding functionality to extract and embed images when converting DOCX files to Markdown. The changes include:

  • convert_image method: Handles image extraction, sanitizes the filename, and saves the image as a PNG in the specified output directory.
  • convert method: Integrates the convert_image method with the Mammoth library's HTML conversion process, ensuring images are extracted and included in the final output.

@MauroDruwel
Copy link
Author

@microsoft-github-policy-service agree

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