Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added tools/tool_md2docx/1.0.5/DOCX.tool
Binary file not shown.
13 changes: 7 additions & 6 deletions tools/tool_md2docx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Kodbox 是一个开源的在线文件管理器,提供了方便的文件浏览
在使用此工具之前,需要先安装所需的依赖包:

```bash
pip install requests python-docx
pip install requests python-docx Pillow
```

### 配置参数
Expand All @@ -48,9 +48,10 @@ MAXKB_SANDBOX_PYTHON_ALLOW_SUBPROCESS=1
| `password` | 字符串 | Kodbox 密码 | `<password>` |

### 输入参数
| 参数名称 | 参数类型 | 参数说明 | 默认值 |
| -------- | -------- | -------- | ------ |
| `content` | 字符串 | Markdown 文本| |
| `file_name` | 字符串 | DOCX 文件名 | |
| `base_image_url` | 字符串 | MaxKB 知识库中图片地址前缀 | `https://<MaxKB_URL>/admin/` |
| 参数名称 | 参数类型 | 参数说明 | 默认值 |
|------------------|------|--------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `content` | 字符串 | Markdown 文本 | |
| `file_name` | 字符串 | DOCX 文件名 | |
| `base_image_url` | 字符串 | MaxKB 知识库中图片地址前缀 | `https://<MaxKB_URL>/admin/` |
| `format` | 字典 | 指定正文及表格(字体、字号、行距、首行缩进、对齐方式)、页边距、图片行距 | `{"fontName":"宋体","fontSize":"12","lineSpacing":"1.5","firstLineIndent":"2","alignment":"left","tableFontName":"宋体","tableFontSize":"12","tableFirstLineIndent":"2","tableAlignment":"center","tableLineSpacing":"1.0","topSection":"2.5","bottomSection":"2","leftSection":"2","rightSection":"2","imageLineSpacing":"单倍行距"}` |

Loading