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..634adf2 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..870b0f9 --- /dev/null +++ b/tools/tool_md2docx/1.0.6/README.md @@ -0,0 +1,29 @@ +## 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":"1.0"}` | + + + + +### 输出结果: + - kodbox 预览文档分享链接 diff --git a/tools/tool_md2docx/README.md b/tools/tool_md2docx/README.md index 4fba4d9..31b06ed 100644 --- a/tools/tool_md2docx/README.md +++ b/tools/tool_md2docx/README.md @@ -44,14 +44,14 @@ MAXKB_SANDBOX_PYTHON_ALLOW_SUBPROCESS=1 | 参数名称 | 参数类型 | 参数说明 | 默认值 | | -------- | -------- | -------- | ------ | | `server_url` | 字符串 | Kodbox 服务地址 | `http://`| -| `username` | 字符串 | Kodbox 用户名 | `` | +| `username` | 字符串 | Kodbox 用户名 | `` DOCX | `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":"单倍行距"}` | +| 参数名称 | 参数类型 | 参数说明 | 默认值 | +|------------------|------|--------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `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":"1.0"}` |