> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://docs.butterix.com/llms.txt
> - v0: https://docs.butterix.com/v0/llms.txt

> For the MDX source of any page, append .mdx to the page URL.
> For a complete documentation index, see https://docs.butterix.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.butterix.com/_mcp/server.
> If something on this page is wrong or missing, POST JSON {"page": "<page URL>", "message": "<what is wrong>"} to https://docs.butterix.com/_biti/feedback/agent.

# 更新日志 — 2026年11月30日

## [页面地址加 .mdx 返回源文件](https://docs.butterix.com/changelog/2026/11/30.md#2026-11-30-页面地址加-mdx-返回源文件)

_2026年11月30日 · Tags: AI_

在任意页面地址后加 `.mdx`，返回这一页的源文件，和作者写的一样，组件保持 MDX 原样，AI 工具可以照着学写法：

```bash
curl https://docs.butterix.com/components/live-photo.mdx
```

`.md` 后缀跳转到 `.mdx`。接口页、更新日志这类自动生成的页面没有源文件，两个地址都返回干净的 Markdown；要拿到写成的页面的干净 Markdown，请求时带上 `Accept: text/markdown`。

详见[每页的 Markdown](https://docs.butterix.com/guides/features/agents.md#每页的-markdown)。

## [新组件：实况照片与图片对比](https://docs.butterix.com/changelog/2026/11/30.md#2026-11-30-新组件-实况照片与图片对比)

_2026年11月30日 · Tags: 内容_

- **实况照片**：`<LivePhoto>` 给照片配一段短视频，左上角显示实况徽标；按住照片播放、松手停止，点徽标完整播放一遍，与 iPhone 的实况照片一样。
- **图片对比**：`<ImageCompare>` 把两张图叠在一起，左右拖动中间的拉杆对比，适合展示处理前后、改版前后的差异。

```mdx
<LivePhoto src="/assets/live.jpg" video="/assets/live.mp4" />

<ImageCompare before="/assets/before.jpg" after="/assets/after.jpg" beforeLabel="之前" afterLabel="之后" />
```

详见[实况照片](https://docs.butterix.com/components/live-photo.md)与[图片对比](https://docs.butterix.com/components/image-compare.md)。
