由bowenliang123的md_exporter实现了markdown转docx,我在他的基础上重写方法,实现html转docx
<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>
front-size
front-color
font-weight
text_align
margin
line-height
text-decoration
background-color
- 1、文档标题请使用h1-h6的HTML标题标签
- 2、文档段落请使用html p标签
- 3、span、mark标签需放置在块级标签内
- 4、不支持html style标签,css样式请使用html标签style属性
- 5、不支持javascript