HtmlPipelineContext htmlContext = new HtmlPipelineContext(null);
htmlContext.setTagFactory(Tags.getHtmlTagProcessorFactory());
if (Conditions.isNotEmpty(imagesRootPath)) {
htmlContext.setImageProvider(new AbstractImageProvider() {
@Override
public String getImageRootPath() {
return imagesRootPath;