# poi-tl-ext **Repository Path**: mstitop/poi-tl-ext ## Basic Information - **Project Name**: poi-tl-ext - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: feature-latex - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-11-02 - **Last Updated**: 2023-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: POI ## README # poi-tl-ext ![GitHub](https://img.shields.io/github/license/draco1023/poi-tl-ext) ![JDK](https://img.shields.io/badge/jdk-1.8-blue) # Maven ```xml io.github.draco1023 poi-tl-ext 0.3 ``` # 扩展功能 - 支持渲染`HTML`字符串,插件`HtmlRenderPolicy`的使用方法如下(也可参考[文档](http://deepoove.com/poi-tl/#_%E4%BD%BF%E7%94%A8%E6%8F%92%E4%BB%B6)) ```java HtmlRenderPolicy htmlRenderPolicy = new HtmlRenderPolicy(); Configure configure = Configure.builder() .bind("key", htmlRenderPolicy) .build(); Map data = new HashMap<>(); data.put("key", "

Hello world!

"); XWPFTemplate.compile("input.docx", configure).render(data).writeToFile("output.docx"); ``` _目前实现了富文本编辑器可实现的大部分效果,后续继续改进..._ - 支持渲染`MathML`字符串,插件类为`MathMLRenderPolicy` - 支持渲染`LaTeX`字符串,插件类为`LaTeXRenderPolicy`