Start with the builder method to configure the renderer. Example:
Formatter formatter = Formatter.builder().build();
formatter.render(node);
| Modifier and Type | Class and Description |
|---|---|
| public static class | Formatter.
Builder for configuring an |
| public static interface | Formatter.
Extension for |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | ATX_HEADER_TRAILING_MARKER
Deprecated
use corrected name
|
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final Document[] | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final int | FORMAT_ALL_OPTIONS
Deprecated
|
| public static final DataKey | |
| public static final int | FORMAT_COLLAPSE_WHITESPACE
Deprecated
|
| public static final int | FORMAT_CONVERT_TABS
Deprecated
|
| public static final DataKey | FORMAT_FLAGS
output control for FormattingAppendable, see |
| public static final int | FORMAT_SUPPRESS_TRAILING_WHITESPACE
Deprecated
|
| public static final DataKey | FORMAT_TABLE_CAPTION
Deprecated
use TableFormatOptions instead
|
| public static final DataKey | FORMAT_TABLE_CAPTION_SPACES
Deprecated
use TableFormatOptions instead
|
| public static final DataKey | FORMAT_TABLE_INDENT_PREFIX
Deprecated
use TableFormatOptions instead
|
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| pack-priv final HeaderIdGeneratorFactory | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final NullableDataKey | |
| pack-priv final List | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| pack-priv final List | |
| public static final Iterable | |
| private static final Iterator | |
| public static final DataKey | |
| private final DataHolder | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | SETEXT_HEADER_EQUALIZE_MARKER
Deprecated
use corrected name
|
| public static final DataKey | |
| public static final DataKey | |
| public static final NullableDataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey | |
| public static final DataKey |
| Modifier and Type | Method and Description |
|---|---|
| public static Formatter. | |
| public static Formatter. | Returns: a builder.initialization options options)Create a new builder for configuring an |
| private static List | |
| public @NotNull DataHolder | |
| public TranslationHandler | getTranslationHandler(TranslationHandlerFactory translationHandlerFactory, HtmlIdGeneratorFactory idGeneratorFactory)
|
| public TranslationHandler | |
| public TranslationHandler | |
| public void | mergeRender(Document[]
node to render documents, Appendable appendable to use for the output output)Render a node to the appendable |
| public void | |
| public String | Returns: the formatted markdownthe root node documents, int maxTrailingBlankLines)Render the tree of nodes to markdown |
| public String | |
| public void | mergeRender(List<Document>
nodes to merge render documents, Appendable appendable to use for the output output, int maxTrailingBlankLines)Render a node to the appendable |
| public void | |
| public void | render(@NotNull Node
node to render node, @NotNull Appendable appendable to use for the output output)Render a node to the appendable Note if Appendable is LineAppendable then its builder will be used as builder for the markdown text, else string sequence builder will be used |
| public void | render(@NotNull Node
node to render node, @NotNull Appendable appendable to which to render the resulting text output, int max trailing blank lines in output, -1 means no last line EOL maxTrailingBlankLines)Render node Note if Appendable is LineAppendable then its builder will be used as builder for the markdown text, else string sequence builder will be used |
| public @NotNull String | |
| public void | translationRender(Node
node to render document, Appendable appendable to use for the output output, TranslationHandler translationHandler, RenderPurpose renderPurpose)Render a node to the appendable |
| public String | Returns: the formatted markdownthe root node document, TranslationHandler translationHandler, RenderPurpose renderPurpose)Render the tree of nodes to markdown |
| public void | translationRender(Node
node to render document, Appendable appendable to use for the output output, int maxTrailingBlankLines, TranslationHandler translationHandler, RenderPurpose renderPurpose)Render a node to the appendable |