builder() to create a renderer.
Note that it doesn't currently preserve the exact syntax of the original input Markdown (if any):
* might be escaped
even though it doesn't need to be in that particular context| Modifier and Type | Class and Description |
|---|---|
| public static class | MarkdownRenderer.
Builder for configuring a |
| public static interface | MarkdownRenderer.
Extension for |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MarkdownRenderer. | |
| public void | render(Node node, Appendable output)
Implements jdk. Render the tree of nodes to output. |
| public String | render(Node node)
Implements jdk. Render the tree of nodes to string. |
| nodeRendererFactories | back to summary |
|---|---|
| private final List<MarkdownNodeRendererFactory> nodeRendererFactories | |
| MarkdownRenderer | back to summary |
|---|---|
| private MarkdownRenderer(MarkdownRenderer. | |
| builder | back to summary |
|---|---|
| public static MarkdownRenderer. Create a new builder for configuring a
| |
| render | back to summary |
|---|---|
| public void render(Node node, Appendable output) Implements jdk. Doc from jdk. Render the tree of nodes to output.
| |
| render | back to summary |
|---|---|
| public String render(Node node) Implements jdk. Doc from jdk. Render the tree of nodes to string.
| |
MarkdownRenderer. See methods for default configuration.
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MarkdownRenderer | |
| public MarkdownRenderer. | |
| public MarkdownRenderer. | Returns: thisthe factory for creating a node renderer nodeRendererFactory)Add a factory for instantiating a node renderer (done when rendering). |
| nodeRendererFactories | back to summary |
|---|---|
| private final List<MarkdownNodeRendererFactory> nodeRendererFactories | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
public MarkdownRenderer build()
| |
| extensions | back to summary |
|---|---|
public MarkdownRenderer.
| |
| nodeRendererFactory | back to summary |
|---|---|
| public MarkdownRenderer. Add a factory for instantiating a node renderer (done when rendering). This allows to override the rendering of node types or define rendering for custom node types. If multiple node renderers for the same node type are created, the one from the factory that was added first "wins". (This is how the rendering for core node types can be overridden; the default rendering comes last.)
| |
MarkdownRenderer for rendering custom nodes.
| Modifier and Type | Method and Description |
|---|---|
| public void | extend(MarkdownRenderer.
the renderer builder to extend rendererBuilderExtend Markdown rendering, usually by registering custom node renderers using |
| extend | back to summary |
|---|---|
| public void extend(MarkdownRenderer. Extend Markdown rendering, usually by registering custom node renderers using
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final NodeRendererMap | |
| private final MarkdownWriter |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public MarkdownWriter | |
| public void | render(Node node)
Implements jdk. Render the specified node and its children using the configured renderers. |
| additionalTextEscapes | back to summary |
|---|---|
| private final Set<Character> additionalTextEscapes | |
| nodeRendererMap | back to summary |
|---|---|
| private final NodeRendererMap nodeRendererMap | |
| writer | back to summary |
|---|---|
| private final MarkdownWriter writer | |
| RendererContext | back to summary |
|---|---|
| private RendererContext(MarkdownWriter writer) | |
| getSpecialCharacters | back to summary |
|---|---|
| public Set Implements jdk.
| |
| getWriter | back to summary |
|---|---|
| public MarkdownWriter getWriter() Implements jdk.
| |
| render | back to summary |
|---|---|
| public void render(Node node) Implements jdk. Doc from jdk. Render the specified node and its children using the configured renderers. This should be used to render child nodes; be careful not to pass the node that is being rendered, that would result in an endless loop.
| |