public interface MarkupService
Modifier and Type | Method and Description |
---|---|
String |
render(String content,
RenderContext renderContext)
Renders a given string into HTML.
|
void |
stream(Reader reader,
Appendable writer,
RenderContext renderContext)
Streams a given string into HTML, appending the results to a given writer.
|
@Nonnull String render(@Nonnull String content, @Nonnull RenderContext renderContext) throws RenderException
content
- that should be the standard markup typerenderContext
- which contains data for rendering in this contextRenderException
- when there an error rendering the markupvoid stream(@Nonnull Reader reader, @Nonnull Appendable writer, @Nonnull RenderContext renderContext) throws RenderException
reader
- that should be the standard markup typewriter
- for streaming the resultsrenderContext
- which contains data for rendering in this contextRenderException
- when there an error streaming the markupCopyright © 2021 Atlassian. All rights reserved.