zt-react-milkdown 0.1.29 → 0.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -64,6 +64,7 @@ export default function Demo() {
64
64
 
65
65
  - 代码块能力
66
66
  - 支持代码块编辑、语言选择与语法高亮。
67
+ - 语法高亮使用 Milkdown 官方 `@milkdown/plugin-prism`,通过 `refractor/all` 同步加载当前安装版本提供的全部语法及别名(包括 Dart、Scala、Elixir);语言菜单与高亮共用注册配置。纯文本不着色,库未提供的语言保留源码和语言标识。全量加载会增加包体积与初始化开销。
67
68
 
68
69
  - 图片能力
69
70
  - 支持图片插入。
@@ -132,7 +133,7 @@ export default function Demo() {
132
133
  - 未传 `debounceMs` 时默认使用 `160`(毫秒)。
133
134
  - `slashMenu` 对应 Slash 菜单行为配置。
134
135
  - `imageUpload` 对应图片上传策略配置。
135
- - `shortcutMode` 只改变修饰键,两种模式使用相同的助记主键。
136
+ - `shortcutMode` 主要改变修饰键;普通文本命令为兼容 Windows 使用不同主键。
136
137
  - `messages` 对应内置文案覆盖。
137
138
  - 搜索相关文案可通过 `messages.searchPanelAriaLabel`、`messages.searchInputPlaceholder`、`messages.searchReplaceInputPlaceholder`、搜索选项与操作标签字段进行局部覆盖。
138
139
  - `debounceMs` / `maxHeight` / `readOnly` 对应编辑交互行为控制。
@@ -158,7 +159,7 @@ export default function Demo() {
158
159
 
159
160
  | 命令 | 主键 | `modShift`(Windows/Linux) | `modAlt`(Windows/Linux) |
160
161
  | --- | --- | --- | --- |
161
- | 普通文本 | `0` | `Ctrl+Shift+0` | `Ctrl+Alt+0` |
162
+ | 普通文本 | `P / 0` | `Ctrl+Shift+P` | `Ctrl+Alt+0` |
162
163
  | 标题 1–6 | `1–6` | `Ctrl+Shift+1–6` | `Ctrl+Alt+1–6` |
163
164
  | 无序列表 | `U` | `Ctrl+Shift+U` | `Ctrl+Alt+U` |
164
165
  | 有序列表 | `O` | `Ctrl+Shift+O` | `Ctrl+Alt+O` |