




















__ __ _ ___ __
____ _____ __ __/ /_/ /_ (_)___ ____ |__ \ ____ ___ ____/ /
/ __ `/ __ \/ / / / __/ __ \/ / __ \/ __ `/_/ // __ `__ \/ __ /
/ /_/ / / / / /_/ / /_/ / / / / / / / /_/ / __// / / / / / /_/ /
\__,_/_/ /_/\__, /\__/_/ /_/_/_/ /_/\__, /____/_/ /_/ /_/\__,_/
/____/ /____/
Markdown is the “food” for AI agents. Cloudflare recently introduced Markdown conversion functionality, which allows you to convert multiple file formats into Markdown using their API. Additionally, you can use Browser rendering to turn any URL into Markdown output.
I recently created two small projects that wrap these Cloudflare features, making them easy to integrate into your applications:
Take anything2md for example, all the format or url are hidden behind a unified API:
import anything2md
md = anything2md.transform("https://www.example.com")
md = anything2md.transform("https://pub-979cb28270cc461d94bc8a169d8f389d.r2.dev/somatosensory.pdf")
md = anything2md.transform("https://pub-979cb28270cc461d94bc8a169d8f389d.r2.dev/cat.jpeg")
print(md.markdown)
Supported input formats include PDF, images, HTML, XML, XLSX, DOCX, CSV, Numbers, and more.
Taking a look at the output text of some webpages or pdfs, it doesn’t give perfect markdown layout, but as in most cases, this contents will be fed into AI agents, so it’s good enough.
Cloudflare doesn’t mention the exact rate limit for this feature, but it should be generous enough for light use cases.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。