Web Device Markdown 指令——不是 AUP primitive;不是 theme/site layout 组件。
Sample 合同
| 字段 | 值 |
|---|---|
| 目的 | ::::steps 内的单步容器 |
| 边界 | 必须嵌在 ::::steps 下;叶 ::step 不能承载正文 |
| 作者入口 | :::step{title=…} 嵌在 ::::steps 下 |
| 表面 | Web Device document(steps 的子 view) |
| 公共状态 | released |
| Fallback / 失败 | 在 steps 外 → 无完整 steps chrome;fence 错误 → 空正文 |
| 验证 | 配对页 steps · arc --version = 2.0.0-beta.28 |
Sample
:::step 仅在 ::::steps 内有意义。完整 fence 规则与 live 渲染:
源码(必须嵌套):
::::steps
:::step{title="One unit, one body"}
This body is a step item. It is not a free-standing tutorial primitive.
:::
::::渲染:
One unit, one body
This body is a step item. It is not a free-standing tutorial primitive.
更完整的多步 sample 见 steps。
失败与限制
| 情形 | 预期结果 |
|---|---|
无外层 ::::steps 的 :::step | 无完整 steps 合同 |
叶 ::step | 不能承载正文 |
缺 title | step 仍可能渲染;标题 chrome 省略 |
验证证据
| 项 | 值 |
|---|---|
| 基线 | 2026-08-09 · arc --version → 2.0.0-beta.28 |
| 能力行 | docs/aup/capability-matrix.md §6 · :::step |
| 实现 | content-reader.ts(子名 step)· stepsDirectiveToAup |
| 公开路由 | /en/docs/web-device/markdown/step/ · /zh/docs/web-device/markdown/step/ |
| 本地运行 | arc service start --blocklet blocklets/arcblock --port 4900 · 打开本页与 steps |
| 接受标准 | 嵌套 step 正文在 steps chrome 内渲染 |
相关
- Markdown hub — 仅导航
- 容器单元:steps
- 历史多单元 hub:markdown-steps