Skip to content

Added DOC to Markdown Converter Function - Issue #23 - #36

Closed
Aviral Bhardwaj (aviral-bhardwaj) wants to merge 2 commits into
microsoft:mainfrom
aviral-bhardwaj:main
Closed

Aviral Bhardwaj (aviral-bhardwaj) wants to merge 2 commits into
microsoft:mainfrom
aviral-bhardwaj:main

Conversation

@aviral-bhardwaj

Copy link
Copy Markdown

Added DOC to Markdown Converter Function

  1. This commit introduces a new DocConverter class that extends the HtmlConverter class to handle the conversion of DOC files to Markdown format. The key features of this implementation are:
  2. File Type Validation: The converter checks if the file extension is ".doc" before proceeding with the conversion.
  3. Conversion Process:
  4. The function uses the mammoth library to convert the DOC file to HTML.
  5. It then utilizes the inherited _convert method to transform the HTML content into Markdown.

Issue URL- This is Issue URL

@aviral-bhardwaj

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is there so many unnecessary indentation changes? Is this PR not for .doc support?

@aviral-bhardwaj

Copy link
Copy Markdown
Author

@aviral-bhardwaj

Copy link
Copy Markdown
Author

closing this and raising same PR again , it is creating issue due to pycharm

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.

3 participants