Skip to content

[0172] 移除有序列表全局 item-nr 设置按钮#3529

Closed
da-liii wants to merge 3 commits into
mainfrom
da/0172/item_nr
Closed

[0172] 移除有序列表全局 item-nr 设置按钮#3529
da-liii wants to merge 3 commits into
mainfrom
da/0172/item_nr

Conversation

@da-liii
Copy link
Copy Markdown
Contributor

@da-liii da-liii commented May 27, 2026

摘要

对于有序列表(enumerate)和无序列表(itemize),item-nr 是用于控制列表项起始编号的局部参数。该参数出现在全局偏好设置(扳手图标)中没有意义,应当仅保留在本地渲染选项(主题图标)中。

改动

  • "item-nr" 加入 inhibit-global-table,阻止它在全局偏好菜单中显示。
  • 修改 rendering-parameters-merge,改为直接通过 search-parameters 判断是否需要将 item-nr 追加到本地渲染参数,确保该设置仍能在本地渲染选项中正常显示和修改。

测试计划

  • 打开 Mogan,插入有序列表,确认扳手图标下拉菜单中不再出现 Item nr
  • 确认主题图标下拉菜单中仍然出现 Item nr 且可正常修改

🤖 Generated with Claude Code

da-liii and others added 3 commits May 27, 2026 20:37
对于有序列表,全局的 item-nr 设置按钮没有意义,
应当仅保留在本地渲染选项中。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 将 item-nr 加入 inhibit-global-table,使其不再出现在
  全局偏好设置(扳手图标)菜单中。
- 修改 rendering-parameters-merge,改为通过 search-parameters
  判断是否需要将 item-nr 追加到本地渲染参数,确保该设置
  仍能在本地渲染选项(主题图标)中正常显示和修改。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
恢复 rendering-parameters-merge 的原始逻辑,改为在
standard-parameters 中为 itemize 和 enumerate 显式声明
item-nr,确保局部渲染菜单仍能显示该设置项。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@da-liii da-liii closed this May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant