v0.1.1

microsoft/markitdownv0.1.1Mar 25, 2025by afourney

AI Summary

Renamed the `convert_url` method to `convert_uri` to better reflect its ability to handle both file and data URIs.

Key Highlights

  • Renamed `convert_url` to `convert_uri`.
  • Handles file URIs (e.g., `file:///path/to/file.txt`).
  • Handles data URIs (e.g., `data:text/plain;base64,...`).
  • Maintains backward compatibility with `convert_url` as an alias.

New Features

  • Expanded URI handling capabilities for file and data schemes.

Full Release Notes

## What's Changed

`convert_url` renamed to `convert_uri`, and now handles data and file URIs by @afourney in https://github.com/microsoft/markitdown/pull/1153

**NOTE**: `convert_url` remains an alias to `convert_uri`, for backward compatibility.

Both now accept file URIs and data URIs:

e.g., 
```python
markitdown = MarkItDown()
result = markitdown.convert_uri("file:///path/to/file.txt")
print(result.markdown)
```

And, 

```python
markitdown = MarkItDown()
result = markitdown.convert_uri("data:text/plain;base64,SGVsbG8sIFdvcmxkIQ==")
print(result.markdown)
```

**Full Changelog**: https://github.com/microsoft/markitdown/compare/v0.1.0...v0.1.1