public static class Formatter.Builder
extends com.vladsch.flexmark.util.options.MutableDataSet
Formatter. See methods for default configuration.| Constructor and Description |
|---|
Builder() |
Builder(com.vladsch.flexmark.util.options.DataHolder options) |
Builder(Formatter.Builder other) |
Builder(Formatter.Builder other,
com.vladsch.flexmark.util.options.DataHolder options) |
| Modifier and Type | Method and Description |
|---|---|
Formatter |
build() |
Formatter.Builder |
extensions(Iterable<? extends com.vladsch.flexmark.Extension> extensions) |
Formatter.Builder |
nodeFormatterFactory(NodeFormatterFactory nodeFormatterFactory)
Add a factory for instantiating a node renderer (done when rendering).
|
clear, get, getOrCompute, merge, remove, set, setAll, setFrom, setIn, toImmutable, toMutablepublic Builder()
public Builder(com.vladsch.flexmark.util.options.DataHolder options)
public Builder(Formatter.Builder other)
public Builder(Formatter.Builder other, com.vladsch.flexmark.util.options.DataHolder options)
public Formatter.Builder nodeFormatterFactory(NodeFormatterFactory nodeFormatterFactory)
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.)
nodeFormatterFactory - the factory for creating a node rendererthispublic Formatter.Builder extensions(Iterable<? extends com.vladsch.flexmark.Extension> extensions)
extensions - extensions to use on this HTML rendererthisCopyright © 2018. All rights reserved.