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

Extraction is not in markdown #206

Open
harinisri2001 opened this issue Dec 24, 2024 · 0 comments
Open

Extraction is not in markdown #206

harinisri2001 opened this issue Dec 24, 2024 · 0 comments

Comments

@harinisri2001
Copy link

harinisri2001 commented Dec 24, 2024

I tried to extract the contents of pdf. But it is extracting as plain text, not as markdown. Am I missing any parameter?

from markitdown import MarkItDown
md = MarkItDown()

result = md.convert("microsoft_report.pdf")
print(result.text_content)

output_file = "output.md"
with open(output_file, "w", encoding="utf-8") as file:
file.write(result.text_content)
print(f"Markdown content has been written to {output_file}")
Image

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

No branches or pull requests

1 participant