Skip to content

Commit eee2138

Browse files
committed
better wording
1 parent 646ce17 commit eee2138

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/changelog/workers-ai/2025-03-20-markdown-conversion.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ description: You can now convert documents in multiple formats to Markdown using
44
date: 2025-03-20T18:00:00Z
55
---
66

7-
Document conversion plays an important role when designing and developing AI applications and agents. Workers AI now provides the `toMarkdown` utility method that developers can use from the `env.AI` binding or the [REST API](/api/resources/ai/) for quick, easy, and convenient conversion and summary of documents in multiple formats to Markdown language.
7+
Document conversion plays an important role when designing and developing AI applications and agents. Workers AI now provides the `toMarkdown` utility method that developers can use to for quick, easy, and convenient conversion and summary of documents in multiple formats to Markdown language.
88

9-
In this example, we fetch a PDF document and an image from R2 and feed them both to `env.AI.toMarkdown`. The result is a list of converted documents. Workers AI models are used automatically to detect and summarize the image.
9+
You can call this new tool using a binding by calling `env.AI.toMarkdown()` or the using the [REST API](/api/resources/ai/) endpoint.
10+
11+
In this example, we fetch a PDF document and an image from R2 and feed them both to `env.AI.toMarkdown()`. The result is a list of converted documents. Workers AI models are used automatically to detect and summarize the image.
1012

1113
```typescript
1214
import { Env } from "./env";

0 commit comments

Comments
 (0)