本文整理了Java中com.atlassian.confluence.xhtml.api.XhtmlContent.convertWikiToView()
方法的一些代码示例,展示了XhtmlContent.convertWikiToView()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XhtmlContent.convertWikiToView()
方法的具体详情如下:
包路径:com.atlassian.confluence.xhtml.api.XhtmlContent
类名称:XhtmlContent
方法名:convertWikiToView
暂无
代码示例来源:origin: org.randombits.support/support-confluence
private String renderWiki( Renderable renderable ) throws RenderException {
List<RuntimeException> exceptions = new ArrayList<RuntimeException>();
try {
String value = xhtmlContent.convertWikiToView( renderable.getText(), renderable.getConversionContext(), exceptions );
if ( !exceptions.isEmpty() ) {
throw new RenderException( "Exceptions occurred while rendering wiki markup.", exceptions );
}
return XhtmlUtils.stripParagraphWrapper(value);
} catch ( XMLStreamException e ) {
throw new RenderException( e.getMessage(), e );
} catch ( XhtmlException e ) {
throw new RenderException( e.getMessage(), e );
}
}
代码示例来源:origin: com.atlassian.confluence.extra.chart/chart-plugin
public String execute(Map parameters, String body, RenderContext renderContext) throws MacroException
{
try
{
ConversionContext conversionContext = new DefaultConversionContext(renderContext);
List<RuntimeException> errorList = new ArrayList<>();
body = xhtmlContent.convertWikiToView(body, conversionContext, errorList);
if(!errorList.isEmpty())
{
for(RuntimeException runtimeException : errorList)
{
log.error("RuntimeException while parsing wiki markup ", runtimeException);
}
throw new MacroException(getI18NBean().getText("confluence.extra.chart.chart.error.parseWikiToStorage"));
}
return execute(parameters, body, conversionContext);
}
catch (MacroExecutionException | XhtmlException | XMLStreamException e)
{
throw new MacroException(e);
}
}
代码示例来源:origin: com.atlassian.labs/confluence-mentions-plugin
velocityContext.put("contentHtml", xhtmlContent.convertWikiToView(contentEntityObject.getDisplayTitle(),
conversionContext, new ArrayList<RuntimeException>()));
内容来源于网络,如有侵权,请联系作者删除!