diff --git a/tools/tool_md2docx/1.0.5/README.md b/tools/tool_md2docx/1.0.5/README.md new file mode 100644 index 0000000..41a77ba --- /dev/null +++ b/tools/tool_md2docx/1.0.5/README.md @@ -0,0 +1,26 @@ +## 1.0.5 版本说明 + +- 新增 format 参数,指定正文及表格(字体、字号、行距、首行缩进、对齐方式)、页边距、图片行距 + +## Markdown 转 DOCX 工具 + +### 启动参数(环境变量) +| 参数名称 | 参数类型 | 参数说明 | 默认值 | +| -------- | -------- | -------- | ------ | +| `server_url` | 字符串 | Kodbox 服务地址 | `http://`| +| `username` | 字符串 | Kodbox 用户名 | `` | +| `password` | 字符串 | Kodbox 密码 | `` | + +### 输入参数 +| 参数名称 | 参数类型 | 参数说明 | 默认值 | +|------------------|------|--------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `content` | 字符串 | Markdown 文本 | | +| `file_name` | 字符串 | DOCX 文件名 | | +| `base_image_url` | 字符串 | MaxKB 知识库中图片地址前缀 | `https:///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 预览文档分享链接 diff --git a/tools/tool_md2docx/1.0.6/DOCX.tool b/tools/tool_md2docx/1.0.6/DOCX.tool new file mode 100644 index 0000000..e3ef87f Binary files /dev/null and b/tools/tool_md2docx/1.0.6/DOCX.tool differ diff --git a/tools/tool_md2docx/1.0.6/README.md b/tools/tool_md2docx/1.0.6/README.md new file mode 100644 index 0000000..3a5ff79 --- /dev/null +++ b/tools/tool_md2docx/1.0.6/README.md @@ -0,0 +1,26 @@ +## 1.0.6 版本说明 + +- 新增表格单元格宽度,支持按照单元格内容权重设置 + +## Markdown 转 DOCX 工具 + +### 启动参数(环境变量) +| 参数名称 | 参数类型 | 参数说明 | 默认值 | +| -------- | -------- | -------- | ------ | +| `server_url` | 字符串 | Kodbox 服务地址 | `http://`| +| `username` | 字符串 | Kodbox 用户名 | `` | +| `password` | 字符串 | Kodbox 密码 | `` | + +### 输入参数 +| 参数名称 | 参数类型 | 参数说明 | 默认值 | +|------------------|------|--------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `content` | 字符串 | Markdown 文本 | | +| `file_name` | 字符串 | DOCX 文件名 | | +| `base_image_url` | 字符串 | MaxKB 知识库中图片地址前缀 | `https:///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 预览文档分享链接 diff --git a/tools/tool_md2docx/README.md b/tools/tool_md2docx/README.md index 4fba4d9..e836d1b 100644 --- a/tools/tool_md2docx/README.md +++ b/tools/tool_md2docx/README.md @@ -44,7 +44,7 @@ MAXKB_SANDBOX_PYTHON_ALLOW_SUBPROCESS=1 | 参数名称 | 参数类型 | 参数说明 | 默认值 | | -------- | -------- | -------- | ------ | | `server_url` | 字符串 | Kodbox 服务地址 | `http://`| -| `username` | 字符串 | Kodbox 用户名 | `` | +| `username` | 字符串 | Kodbox 用户名 | `` DOCX | `password` | 字符串 | Kodbox 密码 | `` | ### 输入参数