# Workers AI - Plain text output for Markdown Conversion

Publisher-attributed story with a reviewed brief or permitted publisher paragraph. The original publisher is responsible for the linked reporting.

- Publisher: Cloudflare Developers
- Category: AI
- Original publication time: 2026-07-10T00:00:00Z
- First observed by NexusTechWire: 2026-10-01T15:54:34Z
- Original source: https://developers.cloudflare.com/changelog/post/2026-07-13-markdown-conversion-text-output/
- NexusTechWire record: https://nexustechwire.com/news/news-8e259c5ae952ab30e5e7

## From the publisher

The Markdown Conversion service now supports a new output conversion option that controls the format of the converted content. Set output.format to text to receive plain text with Markdown syntax removed. The default value is markdown, so existing conversions are unchanged. Use the env.AI binding: await env.AI.toMarkdown( \{ name: "page.html", blob: new Blob(\[html\]) \}, \{ conversionOptions: \{ output: \{ format: "text" \}, \}, \}, ); await env.AI.toMarkdown( \{ name: "page.html", blob: new Blob(\[html\]) \}, \{ conversionOptions: \{ output: \{ format: "text" \}, \}, \}, ); Or call the REST API: curl https://api.cloudflare.com/client/v4/accounts/\{ACCOUNT\_ID\}/ai/tomarkdown \\ -H 'Authorization: Bearer \{API\_TOKEN\}' \\ -F 'files=@index.html' \\ -F 'conversionOptions=\{"output": \{"format": "text"\}\}' When you request text output, the format field of each result is set to text.

Source license: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Publisher excerpt shortened and converted to plain text. Original source license applies.

Read the full original: [Cloudflare Developers](https://developers.cloudflare.com/changelog/post/2026-07-13-markdown-conversion-text-output/)

This record does not reproduce the complete article or represent independent confirmation of every source claim.
