Modifier and Type | Class and Description |
---|---|
static class |
HtmlRenderer.Builder
Builder for configuring an
HtmlRenderer . |
static interface |
HtmlRenderer.HtmlRendererExtension
Extension for
HtmlRenderer . |
Modifier and Type | Method and Description |
---|---|
static HtmlRenderer.Builder |
builder()
Create a new builder for configuring an
HtmlRenderer . |
static HtmlRenderer.Builder |
builder(DataHolder options)
Create a new builder for configuring an
HtmlRenderer . |
String |
render(Node node)
Render the tree of nodes to HTML.
|
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
|
HtmlRenderer |
withOptions(DataHolder options) |
public static final DataKey<Boolean> HEADER_ID_GENERATOR_RESOLVE_DUPES
public static final DataKey<String> HEADER_ID_GENERATOR_TO_DASH_CHARS
public static final DataKey<Boolean> HEADER_ID_GENERATOR_NO_DUPED_DASHES
public static final DataKey<String> FENCED_CODE_LANGUAGE_CLASS_PREFIX
public static final DataKey<Boolean> SOURCE_POSITION_PARAGRAPH_LINES
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 HtmlRenderer.Builder builder()
HtmlRenderer
.public static HtmlRenderer.Builder builder(DataHolder options)
HtmlRenderer
.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 HtmlRenderer withOptions(DataHolder options)
withOptions
in interface IRender
Copyright © 2017. All rights reserved.