Files
Fu-Jie_openwebui-extensions/plugins/actions/export_to_docx/README_CN.md
Jeff fu 278a6ce12c Add export to Word functionality with Markdown support
- Implemented a new plugin to export current conversation content from Markdown to Word (.docx) format.
- Added README_CN.md for Chinese documentation, detailing features, supported Markdown syntax, usage instructions, font configurations, and author information.
- Developed export_to_word.py to handle the conversion process, including title extraction, document creation, and file download triggering.
- Included support for various Markdown elements such as headings, lists, tables, and inline formatting.
- Ensured proper handling of Chinese and English text without encoding issues.
2025-12-30 13:29:44 +08:00

1.8 KiB
Raw Blame History

导出为 Word

将当前对话内容从 Markdown 转换并导出为 Word (.docx) 文件,支持中英文无乱码。

功能特点

  • 一键导出:在聊天界面添加"导出为 Word"动作按钮。
  • Markdown 转换:将 Markdown 语法转换为 Word 格式(标题、粗体、斜体、代码、表格、列表)。
  • 多语言支持:正确处理中文和英文文本,无乱码问题。
  • 自动提取标题:自动使用第一个标题作为文件名。

支持的 Markdown 语法

语法 Word 效果
# 标题1###### 标题6 标题级别 1-6
**粗体**__粗体__ 粗体文本
*斜体*_斜体_ 斜体文本
***粗斜体*** 粗体 + 斜体
`行内代码` 等宽字体 + 灰色背景
``` 代码块 ``` 带缩进的代码块
[链接](url) 蓝色下划线链接文本
~~删除线~~ 删除线文本
- 项目* 项目 无序列表
1. 项目 有序列表
Markdown 表格 带边框表格
---*** 水平分割线

使用方法

  1. 安装插件。
  2. 在任意对话中,点击"导出为 Word"按钮。
  3. .docx 文件将自动下载到你的设备。

字体配置

  • 英文文本Times New Roman
  • 中文文本:宋体(正文)、黑体(标题)
  • 代码Consolas

作者

Fu-Jie
GitHub: Fu-Jie/awesome-openwebui

许可证

MIT License