File tree Expand file tree Collapse file tree 4 files changed +52
-0
lines changed
Expand file tree Collapse file tree 4 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ # Markdown 转 DOCX 工具
2+
3+ 一个用于将 Markdown 转 DOCX 的工具,支持将 AI 生成的 Markdown 格式文本转化成 DOCX ,并提供预览和下载。
4+
5+ ## 功能特性
6+
7+ - ✅ 支持将 Markdown 文本转 DOCX
8+ - ✅ 支持预览文档内容
9+ - ✅ 支持下载文档
10+
11+
12+ ## 环境准备
13+
14+ ### 1.1 Kodbox 安装
15+
16+ 在使用此工具之前,需要先安装 Kodbox 。
17+ Kodbox 是一个开源的在线文件管理器,提供了方便的文件浏览、上传、下载和共享功能。它可以让您通过 web 浏览器访问和管理您的文件,无论是个人使用还是团队协作都非常便捷。
18+
19+ 推荐使用 1panel 安装 Kodbox ,安装步骤如下:
20+
21+ 1 . 安装 1panel,参考 1panel 官方文档:https://docs.1panel.io/docs/installation/install-1panel
22+ 2 . 在 1panel 控制面板中,点击“应用商店”,搜索“Kodbox”,点击“安装”
23+ 3 . 安装完成后,在 1panel 控制面板中,点击“应用”,找到“Kodbox”,点击“访问”
24+
25+ ### 1.2 安装依赖
26+
27+ 在使用此工具之前,需要先安装所需的依赖包:
28+
29+ ``` bash
30+ pip install requests python-docx
31+ ```
32+
33+ ## 参数说明
34+
35+ ### 启动参数
36+ | 参数名称 | 参数类型 | 参数说明 | 默认值 |
37+ | -------- | -------- | -------- | ------ |
38+ | ` server_url ` | 字符串 | Kodbox 服务地址 | ` http://127.0.0.1:8081 ` |
39+ | ` username ` | 字符串 | Kodbox 用户名 | ` <username> ` |
40+ | ` password ` | 字符串 | Kodbox 密码 | ` <password> ` |
41+
42+ ### 输入参数
43+ | 参数名称 | 参数类型 | 参数说明 | 默认值 |
44+ | -------- | -------- | -------- | ------ |
45+ | ` content ` | 字符串 | Markdown 文本| |
46+ | ` file_name ` | 字符串 | DOCX 文件名 | |
47+ | ` base_image_url ` | 字符串 | MaxKB 知识库中图片地址前缀 | https://<MaxKB URL >/admin/ |
Original file line number Diff line number Diff line change 1+ name : Markdown 转 DOCX 工具
2+ tags :
3+ - 文档
4+ title : 将 Markdown 文本转换为 DOCX 文档
5+ description : 实现将 Markdown 文本转换为 Microsoft Word DOCX 文档,并上传到 Kodbox
You can’t perform that action at this time.
0 commit comments