Skip to content
Closed
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
26 changes: 26 additions & 0 deletions tools/tool_md2docx/1.0.5/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## 1.0.5 版本说明

- 新增 format 参数,指定正文及表格(字体、字号、行距、首行缩进、对齐方式)、页边距、图片行距

## Markdown 转 DOCX 工具

### 启动参数(环境变量)
| 参数名称 | 参数类型 | 参数说明 | 默认值 |
| -------- | -------- | -------- | ------ |
| `server_url` | 字符串 | Kodbox 服务地址 | `http://<Kodbox_URL>`|
| `username` | 字符串 | Kodbox 用户名 | `<username>` |
| `password` | 字符串 | Kodbox 密码 | `<password>` |

### 输入参数
| 参数名称 | 参数类型 | 参数说明 | 默认值 |
|------------------|------|--------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `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":"单倍行距"}` |




### 输出结果:
- kodbox 预览文档分享链接
Binary file added tools/tool_md2docx/1.0.6/DOCX.tool
Binary file not shown.
29 changes: 29 additions & 0 deletions tools/tool_md2docx/1.0.6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## 1.0.6 版本说明

- 新增表格单元格宽度,支持按照单元格内容权重设置。
- 修复图片过大时,可按比例收缩。
- 更新图片行距参数。
- 实现自定义标题字体,大小,默认设置颜字体黑色,不加粗

## Markdown 转 DOCX 工具

### 启动参数(环境变量)
| 参数名称 | 参数类型 | 参数说明 | 默认值 |
| -------- | -------- | -------- | ------ |
| `server_url` | 字符串 | Kodbox 服务地址 | `http://<Kodbox_URL>`|
| `username` | 字符串 | Kodbox 用户名 | `<username>` |
| `password` | 字符串 | Kodbox 密码 | `<password>` |

### 输入参数
| 参数名称 | 参数类型 | 参数说明 | 默认值 |
|------------------|------|--------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `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":"1.0"}` |




### 输出结果:
- kodbox 预览文档分享链接
14 changes: 7 additions & 7 deletions tools/tool_md2docx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ MAXKB_SANDBOX_PYTHON_ALLOW_SUBPROCESS=1
| 参数名称 | 参数类型 | 参数说明 | 默认值 |
| -------- | -------- | -------- | ------ |
| `server_url` | 字符串 | Kodbox 服务地址 | `http://<Kodbox_URL>`|
| `username` | 字符串 | Kodbox 用户名 | `<username>` |
| `username` | 字符串 | Kodbox 用户名 | `<username>` DOCX
| `password` | 字符串 | Kodbox 密码 | `<password>` |

### 输入参数
| 参数名称 | 参数类型 | 参数说明 | 默认值 |
|------------------|------|--------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `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":"单倍行距"}` |
| 参数名称 | 参数类型 | 参数说明 | 默认值 |
|------------------|------|--------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `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":"1.0"}` |

Loading