| Modifier and Type | Class and Description |
|---|---|
static class |
Formatter.Builder
Builder for configuring an
Formatter. |
static interface |
Formatter.FormatterExtension
Extension for
Formatter. |
| Modifier and Type | Method and Description |
|---|---|
static Formatter.Builder |
builder()
Create a new builder for configuring an
Formatter. |
static Formatter.Builder |
builder(DataHolder options)
Create a new builder for configuring an
Formatter. |
String |
render(Node node)
Render the tree of nodes to markdown
|
void |
render(Node node,
Appendable output)
Render a node to the appendable
|
void |
render(Node node,
Appendable output,
int maxTrailingBlankLines)
Render a node to the appendable
|
Formatter |
withOptions(DataHolder options) |
public static final DataKey<Integer> FORMAT_FLAGS
FormattingAppendable.setOptions(int)public static final int FORMAT_CONVERT_TABS
public static final int FORMAT_COLLAPSE_WHITESPACE
public static final int FORMAT_SUPPRESS_TRAILING_WHITESPACE
public static final int FORMAT_ALL_OPTIONS
public static final DataKey<DiscretionaryText> SPACE_AFTER_ATX_MARKER
public static final DataKey<EqualizeTrailingMarker> ATX_HEADER_TRAILING_MARKER
public static final DataKey<BlockQuoteMarker> BLOCK_QUOTE_MARKERS
public static final DataKey<Boolean> FENCED_CODE_MATCH_CLOSING_MARKER
public static final DataKey<CodeFenceMarker> FENCED_CODE_MARKER_TYPE
public static final DataKey<ListBulletMarker> LIST_BULLET_MARKER
public static final DataKey<ListNumberedMarker> LIST_NUMBERED_MARKER
public static final DataKey<ListSpacing> LIST_SPACING
public static final DataKey<ElementPlacement> REFERENCE_PLACEMENT
public static final DataKey<ElementPlacementSort> REFERENCE_SORT
public static final DataKey<CharWidthProvider> CHAR_WIDTH_PROVIDER
public static final DataKey<ParserEmulationProfile> FORMATTER_EMULATION_PROFILE
public static Formatter.Builder builder()
Formatter.public static Formatter.Builder builder(DataHolder options)
Formatter.options - initialization optionspublic void render(Node node, Appendable output)
public void render(Node node, Appendable output, int maxTrailingBlankLines)
node - node to renderoutput - appendable to use for the outputpublic Formatter withOptions(DataHolder options)
withOptions in interface IRenderCopyright © 2018. All rights reserved.