Skip to content

[Feature]: Route rewrite from html to md based on Accept header #2627

@Nsttt

Description

@Nsttt

What problem does this feature solve?

LLms that access Rspress sites would benefit a lot if Rspress notices its an LLM and return the markdown route instead of the HTML one.

What does the proposed API look like?

For this we can use the Accept header that asks for text/plain instead of text/html like a regular browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions