> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 文档数据结构

> 钉钉文档由块元素 BlockElement 组成树形结构，不同块类型可嵌套的子元素不同，例如高亮块可容纳任意 BlockElement，段落块仅可容纳 InlineElement。

一篇在线文档是由若干个块元素组成的树，不同类型的 `BlockElment` 内部可嵌套的元素的类型是不同，例如 `高亮块` 里可以嵌套任意的 `BlockElement`，但是 `段落块` 下只能其嵌套 `InlineElement`。一篇文档的结构大致如下：

![文档数据结构](https://help-static-aliyun-doc.aliyuncs.com/assets/img/zh-CN/3524684771/p1063438.png)

以这篇文档为例，拆解页面如下：

![文档数据结构](https://help-static-aliyun-doc.aliyuncs.com/assets/img/zh-CN/3524684771/p1063439.png)
