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

feat: Add 'convert_local_content' method to directly convert file content (str) #301

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

Conversation

Athroniaeth
Copy link

Hello, maybe I didn't find it, but I couldn't figure out how to directly convert the content of a file (str) into markdown. This PR contains the unit tests for this method

from markitdown import MarkItDown

md = MarkItDown()
result = md.convert_local_content("<h1>Hello World!</h1>", file_extension=".html")
print(result.text_content)

-->

# Hello World!

@Athroniaeth
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