设施联系渠道已从电子邮件切换为聊天。在 Raw YAML 中更改嵌套值,以便名称和渠道保持在同一个 contact 组下。

在不移动键的情况下编辑值

在 Ulet Markdown 中,选择 Document → Properties → Raw YAML。在元数据主体中,将现有的 channel 值改为 chat。使其缩进与 name 保持对齐。结果如下:

contact:
  name: Facilities
  channel: chat
status: active

Raw YAML changes channel from email to chat while retaining its indentation under contact.

嵌套编辑示意图。保持两个子键对齐。

检查已保存笔记中的结构

保存并打开完整的 Source 视图。查看第一个标题上方的分隔符。两个子键都应保持缩进,且 status 应保留在外层级。如果有发布工具会读取此文件,请在其中加载一个测试副本并验证 contact.channel 为 chat。请使用空格进行缩进。

The full source retains both front matter delimiters and the nested contact block.

已保存源内容示意图。下游工具应将 contact.channel 读取为 chat。

YAML 的缩进规则