# 章节与块级元素对照 森空岛官方 Wiki JSON 将条目主体拆分为 `chapterGroup`(目录顺序)、`widgetCommonMap`(组件定义)和 `documentMap`(富文本文档池)三张关联表。本页详细对照章节模式、块级元素、表格与对话在 XML 与 JSON 之间的映射关系。 ## 章节组与四种章节模式 每个 `` 映射为 `document.chapterGroup[]` 中的一项 `{ title, widgets }`;组内每个 `` 在 `widgets` 中占一项 `{ id, title, size }`,并在 `widgetCommonMap[id]` 中写入组件体: | 章节模式 | XML 写法 | `widgetCommonMap[id].type` | 核心数据位置 | | --- | --- | --- | --- | | 通用章节(无选项卡) | `blocks` | `"common"` | `tabDataMap.default.content` → `documentMap[docId]` | | 通用章节(多选项卡) | `...` | `"common"` | `tabList[]` + `tabDataMap[tabId].content` + 可选 `tabDataMap[tabId].intro` | | 简单表格章节 | `......
` | `"table"` | `tableList[]`(每 2 项组成一行,项为 `{ label, value }`) | | 音频章节(平铺) | `` | `"audio"` | `tabDataMap.default.audioList[]` | | 音频章节(多选项卡) | `...` | `"audio"` | `tabList[]` + `tabDataMap[tabId].audioList[]` | | 对话章节 | `...` | `"dialog"` | `dialogList[]`(其中 `` 通过 `documentId` 引用 `documentMap`) | 通用选项卡内的 `` 映射为 `tabDataMap[tabId].intro`,包含 `name`、`type`、`imgUrl` 与指向独立段落文档的 `description`(同样存于 `documentMap`)。 ## 正文块级元素对照 在 ``、通用 ``、``、``、`
  • `、``/`` 与 `` 中,块级元素均进入所在文档的 `blockIds` 与 `blockMap[blockId]`: | XML 元素 | JSON `block.kind` | 核心属性与字段映射 | | --- | --- | --- | | 普通文本行 | `"text"` | `text.kind = "body"`,`align = "left"`(默认),`inlineElements[]` | | `

    ` / `

    ` / `

    ` | `"text"` | `text.kind = "heading1"` / `"heading2"` / `"heading3"` | | `` | `"text"` | `align` 取自 `value`(作为容器可包裹多行或标题,每行分别设对齐) | | `` | `"quote"` | `quote.childIds[]` 指向嵌套子块 ID 列表 | | `
      ` / `
        ` | `"list"` | `list.kind = "unordered"` / `"ordered"`,`list.itemIds[]` 引用 `list.itemMap[itemId].childIds[]` | | `