For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/components/markdown-surface.md.

Markdown 内容面

为已净化的 Markdown 输出提供一致的阅读层级、代码、表格、媒体和自定义渲染槽。

实时预览

运行摘要

任务已完成 三项验证变更。

npm run release:check
发布前请检查生成结果。

用法

<article class="markdown-surface">
  <h2>运行摘要</h2><p>任务已完成 <strong>三项验证变更</strong>。</p><pre tabindex="0"><code>npm run release:check</code></pre><blockquote>发布前请检查生成结果。</blockquote>
</article>

契约

接口值
根选择器.markdown-surface
原生根元素<article>
状态ready, loading, empty, error
事件—
方法—

产品边界

组件不解析不可信 HTML,不加载远程渲染器,也不决定链接是否安全。图表、数学与媒体插槽由宿主显式注册。

组件只发布可复用的交互边界。数据获取、持久化、权限、可信内容与业务实体继续由宿主产品拥有。

可访问性

标题层级保持连续,链接可见且可聚焦,代码方向从左到右。表格和代码在窄屏拥有自己的滚动边界。