Skip to content

hitechbeijing/dify-plugin-tools-html-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html_exporter

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

image

支持以下HTML标签的转换

<p></p>
<div></div>
<span></span>
<ul></ul>
<li></li>
<table></table>
<br\>
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h6>
<h6></h6>
<span></span>
<b></b>
<strong></strong>
<i></i>
<u></u>
<em></em>
<u></u>
<small></small>
<ol></ol>
<mark></mark>

支持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

About

用于将llm生成的html代码转为docx文档

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages