public class FootnoteExtension extends Object implements Parser.ParserExtension, HtmlRenderer.HtmlRendererExtension, Parser.ReferenceHoldingExtension, Formatter.FormatterExtension
Create it with create() and then configure it on the builders
(Parser.Builder.extensions(Iterable),
HtmlRenderer.Builder.extensions(Iterable)).
The parsed footnote references in text regions are turned into Footnote nodes.
The parsed footnote definitions are turned into FootnoteBlock nodes.
| Modifier and Type | Field and Description |
|---|---|
static DataKey<String> |
FOOTNOTE_BACK_LINK_REF_CLASS |
static DataKey<String> |
FOOTNOTE_BACK_REF_STRING |
static DataKey<String> |
FOOTNOTE_LINK_REF_CLASS |
static DataKey<ElementPlacement> |
FOOTNOTE_PLACEMENT |
static DataKey<String> |
FOOTNOTE_REF_PREFIX |
static DataKey<String> |
FOOTNOTE_REF_SUFFIX |
static DataKey<ElementPlacementSort> |
FOOTNOTE_SORT |
static DataKey<FootnoteRepository> |
FOOTNOTES |
static DataKey<KeepType> |
FOOTNOTES_KEEP |
EMPTY_LIST, EMPTY_SET| Modifier and Type | Method and Description |
|---|---|
static Extension |
create() |
void |
extend(Formatter.Builder builder) |
void |
extend(HtmlRenderer.Builder rendererBuilder,
String rendererType) |
void |
extend(Parser.Builder parserBuilder) |
void |
parserOptions(MutableDataHolder options) |
void |
rendererOptions(MutableDataHolder options) |
boolean |
transferReferences(MutableDataHolder document,
DataHolder included) |
public static final DataKey<FootnoteRepository> FOOTNOTES
public static final DataKey<ElementPlacement> FOOTNOTE_PLACEMENT
public static final DataKey<ElementPlacementSort> FOOTNOTE_SORT
public static Extension create()
public void extend(Formatter.Builder builder)
extend in interface Formatter.FormatterExtensionpublic void rendererOptions(MutableDataHolder options)
rendererOptions in interface Formatter.FormatterExtensionrendererOptions in interface HtmlRenderer.HtmlRendererExtensionpublic void parserOptions(MutableDataHolder options)
parserOptions in interface Parser.ParserExtensionpublic boolean transferReferences(MutableDataHolder document, DataHolder included)
transferReferences in interface Parser.ReferenceHoldingExtensionpublic void extend(Parser.Builder parserBuilder)
extend in interface Parser.ParserExtensionpublic void extend(HtmlRenderer.Builder rendererBuilder, String rendererType)
extend in interface HtmlRenderer.HtmlRendererExtensionCopyright © 2017. All rights reserved.