Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Demo project for delivering markdown to agents and HTML to humans.

Demo

Compare

 curl -H "Accept: text/markdown" https://markdown-to-agents.vercel.app/docs/getting-started

and

 curl -H "Accept: text/html" https://markdown-to-agents.vercel.app/docs/getting-started

How it works

The rewrite in next.config.ts directs traffic asking for text/markdown to a route that returns markdown.

const nextConfig: NextConfig = { rewrites: async () => { return { beforeFiles: [ { source: "/docs/:slug", destination: "/markdown/:slug", has: [ { type: "header", key: "accept", // Simplified for understandability. See file for full version value: "(.*)text/markdown(.*)", }, ], }, ], }; }, };

关于 About

No description, website, or topics provided.

语言 Languages

TypeScript66.9%
CSS28.3%
JavaScript4.8%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
12
Total Commits
峰值: 8次/周
Less
More

核心贡献者 Contributors