public interface WikiRenderer
Modifier and Type | Method and Description |
---|---|
java.lang.String |
render(java.lang.CharSequence wikiText)
Same as calling
render(CharSequence, com.atlassian.renderer.RenderContext) with a null context. |
java.lang.String |
render(java.lang.CharSequence wikiText,
com.atlassian.renderer.RenderContext renderContext)
Renders the given wikiText into html, using the given context.
|
java.lang.String |
renderPlain(java.lang.CharSequence wikiText)
Same as calling
renderPlain(CharSequence, com.atlassian.renderer.RenderContext) with a null render context. |
java.lang.String |
renderPlain(java.lang.CharSequence wikiText,
com.atlassian.renderer.RenderContext renderContext)
Renders the wikitext in plain text.
|
<T extends com.atlassian.renderer.RenderContext> |
setupRenderContextProperties(T renderContext)
setting up the context's baseUrl, siteRoot and imagePath properties.
|
java.lang.String render(java.lang.CharSequence wikiText)
render(CharSequence, com.atlassian.renderer.RenderContext)
with a null context.wikiText
- the wiki text to renderjava.lang.String render(java.lang.CharSequence wikiText, com.atlassian.renderer.RenderContext renderContext)
wikiText
- the wiki text to renderrenderContext
- The context contains information about the urls of images, the type of render, and other contextual information required
by various component renderers. If null, the default configurations will be used. A correctly setup context may be
obtained by calling setupRenderContextProperties(com.atlassian.renderer.RenderContext)
, and passing in a new RenderContext()
.java.lang.String renderPlain(java.lang.CharSequence wikiText)
renderPlain(CharSequence, com.atlassian.renderer.RenderContext)
with a null render context.wikiText
- the wiki text to renderjava.lang.String renderPlain(java.lang.CharSequence wikiText, com.atlassian.renderer.RenderContext renderContext)
wikiText
- the wiki text to renderrenderContext
- the render context. see render(CharSequence, com.atlassian.renderer.RenderContext)
for information on the render
context.<T extends com.atlassian.renderer.RenderContext> T setupRenderContextProperties(T renderContext)
renderContext
- the RenderContext to set the properties on.