public class FootnoteExtension extends Object implements Parser.ParserExtension, HtmlRenderer.HtmlRendererExtension
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<String> |
FOOTNOTE_REF_PREFIX |
static DataKey<String> |
FOOTNOTE_REF_SUFFIX |
static DataKey<FootnoteRepository> |
FOOTNOTES |
static DataKey<KeepType> |
FOOTNOTES_KEEP |
EMPTY_LIST, EMPTY_SET
Modifier and Type | Method and Description |
---|---|
static Extension |
create() |
void |
extend(HtmlRenderer.Builder rendererBuilder,
String rendererType) |
void |
extend(Parser.Builder parserBuilder) |
public static final DataKey<FootnoteRepository> FOOTNOTES
public static Extension create()
public void extend(Parser.Builder parserBuilder)
extend
in interface Parser.ParserExtension
public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType)
extend
in interface HtmlRenderer.HtmlRendererExtension
Copyright © 2016. All rights reserved.