Content Formats
Extension-based content negotiation
Content Formats
The @mdxe/hono runtime supports multiple output formats via file extensions.
Supported Formats
| Extension | Content-Type | Description |
|---|---|---|
.html | text/html | Rendered HTML |
.json | application/json | MDXLD document |
.md | text/markdown | Original MDX source |
.txt | text/plain | Plain text content |
.xml | application/xml | XML representation |
Usage
Append extension to any URL:
Accept Header
Alternatively use Accept headers: