Skip to content

Serve markdown from the Pages worker - #15

Merged
itz4blitz merged 1 commit into
mainfrom
site-markdown-worker
Oct 17, 2026
Merged

itz4blitz merged 1 commit into
mainfrom
site-markdown-worker

Conversation

@itz4blitz

Copy link
Copy Markdown
Owner

Summary

  • Move markdown negotiation into site/_worker.js, which wrangler pages deploy actually bundles.
  • The previous site/functions middleware never ran, so Accept: text/markdown kept returning HTML.

Test plan

  • curl -H 'Accept: text/markdown' https://tinyclient.io/ returns content-type: text/markdown.
  • A normal browser request still returns HTML.

Made with Cursor

wrangler pages deploy only bundles site/_worker.js, so Accept: text/markdown was still returning HTML.
@itz4blitz
itz4blitz merged commit b37a8b2 into main Oct 17, 2026
6 checks passed
@itz4blitz
itz4blitz deleted the site-markdown-worker branch October 24, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant