跳到主要内容

Sample 合同 · MD 指令 · ARC 2.0.0-beta.28

`::::steps`

用 steps/step fence 编写静态编号教程,并查看真实 document 渲染。

Web Device Markdown 指令——不是 AUP primitive;不是 theme/site layout 组件。

Sample 合同

字段值
目的document 上的静态编号教程容器
边界仅静态——无运行按钮、bind 或写入;外层 fence 深于嵌套 step
作者入口::::steps 包裹 :::step 子节点
表面Web Device document(渲染为 view mode steps)
公共状态released
Fallback / 失败fence 深度错误会丢/错解正文;非 step 子节点被跳过
验证下方路由 · arc --version = 2.0.0-beta.28

Sample

外层 fence 的冒号数必须多于内层。

源码:

markdown
::::steps
:::step{title="Define the content boundary"}
Say what the page presents, and what it does not execute.
:::

:::step{title="Place source above the result"}
Let the reader see both the Markdown and its actual output.
:::
::::

渲染:

  1. Define the content boundary

    Say what the page presents, and what it does not execute.

  2. Place source above the result

    Let the reader see both the Markdown and its actual output.

失败与限制

情形预期结果
外层 fence 过浅结构误读;steps 可能丢失
:::step 在 ::::steps 外本页无完整 steps chrome 合同
期望可执行运行按钮超出合同

验证证据

项值
基线2026-08-09 · arc --version → 2.0.0-beta.28
能力行docs/aup/capability-matrix.md §6 · ::::steps
实现content-reader.ts · stepsDirectiveToAup · renderer/primitives/view.ts
公开路由/en/docs/web-device/markdown/steps/ · /zh/docs/web-device/markdown/steps/
本地运行arc service start --blocklet blocklets/arcblock --port 4900 · 打开路由
接受标准静态编号 steps 渲染;无执行控件

相关