An open API service indexing awesome lists of open source software.

https://github.com/hitechbeijing/dify-plugin-tools-html-exporter

一款能将html代码转为docx文档的dify插件
https://github.com/hitechbeijing/dify-plugin-tools-html-exporter

Last synced: 17 days ago
JSON representation

一款能将html代码转为docx文档的dify插件

Awesome Lists containing this project

README

          

# html_exporter
由bowenliang123的md_exporter实现了markdown转docx,我在他的基础上重写方法,实现html转docx

image

支持以下HTML标签的转换

```



















    1. ```

      支持css样式:

      ```
      front-size
      front-color
      font-weight
      text_align
      margin
      line-height
      text-decoration
      background-color
      ```

      支持完整141色HTML颜色名称 详见:


      HTML颜色名

      注意:LLM 生成的HTML需遵循以下规范:



      • 1、文档标题请使用h1-h6的HTML标题标签

      • 2、文档段落请使用html p标签

      • 3、span、mark标签需放置在块级标签内

      • 4、不支持html style标签,css样式请使用html标签style属性

      • 5、不支持javascript