Web Device Markdown 指令——不是 AUP primitive;不是 theme/site layout 组件。
Sample 合同
| 字段 | 值 |
|---|---|
| 目的 | 带可选正文的静态 info card |
| 边界 | 不是链接;忽略 href;无 exec 或写入 |
| 作者入口 | :::info-card{title=… description=…} |
| 表面 | Web Device document(静态) |
| 公共状态 | released |
| Fallback / 失败 | 导航忽略 href |
| 验证 | 下方路由 · arc --version = 2.0.0-beta.28 |
Sample
源码:
:::info-card{title="A read-only example" description="Content and layout are maintained separately"}
The body can contain paragraphs, lists, and code.
- A content item owns the reader-facing text
- `layout.aup` decides how a page organizes those items
:::渲染:
A read-only example
Content and layout are maintained separately
The body can contain paragraphs, lists, and code.
- A content item owns the reader-facing text
layout.aupdecides how a page organizes those items
info-card 不是链接。即使作者提供 href,当前 content reader 也不会把它提升为可点击卡片。
失败与限制
| 情形 | 预期结果 |
|---|---|
info-card 上的 href | 导航忽略 |
| 期望可点击跳转卡片 | 改用 link-card |
| 外层 fence 过浅 | 正文可能丢失 / 解析错误 |
验证证据
| 项 | 值 |
|---|---|
| 基线 | 2026-08-09 · arc --version → 2.0.0-beta.28 |
| 能力行 | docs/aup/capability-matrix.md §6 · :::info-card |
| 实现 | content-reader.ts · arc#2546 |
| 公开路由 | /en/docs/web-device/markdown/info-card/ · /zh/docs/web-device/markdown/info-card/ |
| 本地运行 | arc service start --blocklet blocklets/arcblock --port 4900 · 打开路由 |
| 接受标准 | 正文渲染;卡片不是链接;无写入路径 |
相关
- Markdown hub — 仅导航
- 同级卡片:link-card · action-card · card-group
- 历史多单元 hub:markdown-cards