Home / Companies / Fastly / Blog / Post Details
Content Deep Dive

Give AI Agents the Markdown They Actually Want

Blog post from Fastly

Post Details
Company
Date Published
Author
Jonathan Speek
Word Count
2,164
Company Posts That Month
10
Language
English
Hacker News Points
-
Post removed?
No
Summary

AI crawlers often request web pages as HTML, which they must then strip down to plain text, a process that can be inefficient and lossy, particularly for tables and code blocks. To address this, a small JavaScript service running on Fastly Compute has been developed to serve Markdown versions of web content specifically to AI crawlers, while normal browser requests continue to receive HTML. This service, which requires about 200 lines of JavaScript, uses tools like linkedom and Defuddle for parsing and extracting content, and Turndown for converting HTML to Markdown. The approach reduces bandwidth and improves the accuracy of AI models by providing them with cleaner, more digestible content. The service includes caching to optimize repeated requests and can be customized for specific needs like link rewriting or site-specific content extraction. This transformation process respects the efficiency needs of AI crawlers and optimizes content delivery without disrupting the traditional user experience.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 3 9,074 1,640 224 +53%
AI Agents 2 4,942 1,264 250 +12%
Real-time 2 5,735 1,391 247 -9%
Platform Engineering 1 1,288 297 83 +19%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.