This commit is contained in:
lumin 2025-02-05 20:20:10 +09:00 committed by GitHub
commit b5b22a825d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,12 +81,39 @@ result = md.convert("example.jpg")
print(result.text_content)
```
### Docker
<details>
<summary>Docker</summary>
#### Build
```sh
docker build -t markitdown:latest .
docker run --rm -i markitdown:latest < ~/your-file.pdf > output.md
```
#### Check version
```sh
docker run --rm markitdown:latest --version
```
#### Convert
- On Windows (PowerShell):
```sh
docker run --rm --volume ${pwd}:/src --workdir /src markitdown:latest ./path-to-your-file.pdf
```
- On Linux:
```sh
docker run --rm --volume $(pwd):/src --workdir /src markitdown:latest ./path-to-your-file.pdf
```
Note: When specifying the file path, always use `/` as the separator, even on Windows (e.g., ./my-folder/my-file.pdf).
</details>
<details>
<summary>Batch Processing Multiple Files</summary>