Skip to content

markdown header negociation #167

Closed

Description

@arhimede

usual browsers have
content-type | text/html; charset=utf-8

AI agents ask for a content-type for markdown

let's redirect if a request is for markdown to the markdown page

Activity

  1. arhimede commented on Aug 26, 2026

    @arhimede
    MemberAuthor

    Client specify what it accepts]
    Accept: text/markdown, text/plain; q=0.8, text/html; q=0.5

    Server respond whith what it providesd
    Content-Type: text/markdown; charset=utf-8

    The q values are quality factors (0-1, default 1.0) that indicate preference priority.

  2. arhimede commented on Aug 26, 2026

    @arhimede
    MemberAuthor

    Add for each pages , in header

    <link rel="alternate" type="text/markdown" href="/md-pages/api.md">
    
  3. linked a pull request that will close this issueupdated header - added markdown alt #170on Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions