claudeenmodel: claude-sonnet-4-20250514
Workers AI Markdown Conversion Gets Customizable Processing Options
Key Points
- Customizable conversion options for images, HTML, and PDF files
- CSS selector support for targeted HTML content extraction
- Multi-language AI image descriptions now supported
Summary
Cloudflare Workers AI has enhanced its Markdown Conversion service with customizable processing options through a new conversionOptions object. This update allows developers to fine-tune how different file types are converted to Markdown.
Key Points
- Image Processing: Configure language for AI-generated image descriptions
- HTML Processing: Use CSS selectors to extract specific content sections or provide hostname for resolving relative links
- PDF Processing: Option to exclude metadata from conversion output
- Multiple Access Methods: Available through both
env.AIbinding in Workers and REST API - Flexible Configuration: Pass options as object parameters for granular control over conversion behavior