zt-react-milkdown 0.1.29 → 0.1.30
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 +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +138 -131
- package/dist/src/plugins/custom/block-transform/block-transform-shortcuts.d.ts +13 -2
- package/dist/src/plugins/custom/block-transform/block-transform-shortcuts.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu-shortcuts.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -132,7 +132,7 @@ export default function Demo() {
|
|
|
132
132
|
- 未传 `debounceMs` 时默认使用 `160`(毫秒)。
|
|
133
133
|
- `slashMenu` 对应 Slash 菜单行为配置。
|
|
134
134
|
- `imageUpload` 对应图片上传策略配置。
|
|
135
|
-
- `shortcutMode`
|
|
135
|
+
- `shortcutMode` 主要改变修饰键;普通文本命令为兼容 Windows 使用不同主键。
|
|
136
136
|
- `messages` 对应内置文案覆盖。
|
|
137
137
|
- 搜索相关文案可通过 `messages.searchPanelAriaLabel`、`messages.searchInputPlaceholder`、`messages.searchReplaceInputPlaceholder`、搜索选项与操作标签字段进行局部覆盖。
|
|
138
138
|
- `debounceMs` / `maxHeight` / `readOnly` 对应编辑交互行为控制。
|
|
@@ -158,7 +158,7 @@ export default function Demo() {
|
|
|
158
158
|
|
|
159
159
|
| 命令 | 主键 | `modShift`(Windows/Linux) | `modAlt`(Windows/Linux) |
|
|
160
160
|
| --- | --- | --- | --- |
|
|
161
|
-
| 普通文本 | `0` | `Ctrl+Shift+
|
|
161
|
+
| 普通文本 | `P / 0` | `Ctrl+Shift+P` | `Ctrl+Alt+0` |
|
|
162
162
|
| 标题 1–6 | `1–6` | `Ctrl+Shift+1–6` | `Ctrl+Alt+1–6` |
|
|
163
163
|
| 无序列表 | `U` | `Ctrl+Shift+U` | `Ctrl+Alt+U` |
|
|
164
164
|
| 有序列表 | `O` | `Ctrl+Shift+O` | `Ctrl+Alt+O` |
|