public class AbbreviationExtension extends Object implements com.vladsch.flexmark.parser.Parser.ParserExtension, com.vladsch.flexmark.html.HtmlRenderer.HtmlRendererExtension, com.vladsch.flexmark.parser.Parser.ReferenceHoldingExtension, com.vladsch.flexmark.formatter.internal.Formatter.FormatterExtension
Create it with create() then configure builders
(Parser.Builder.extensions(Iterable),
HtmlRenderer.Builder.extensions(Iterable)).
The parsed abbreviations are turned into abbr tags by default or a links as an option by setting the USE_LINKS key to true in option used to create the Parser.Builder via Parser.builder(options)
| Modifier and Type | Field and Description |
|---|---|
static com.vladsch.flexmark.util.options.DataKey<AbbreviationRepository> |
ABBREVIATIONS
A
DataKey that is used to get the document's Node repository holding all the abbreviations defined in the current document. |
static com.vladsch.flexmark.util.options.DataKey<com.vladsch.flexmark.util.KeepType> |
ABBREVIATIONS_KEEP
A
DataKey that is used to set the behavior of the abbreviations repository when duplicates are defined. |
static com.vladsch.flexmark.util.options.DataKey<com.vladsch.flexmark.util.format.options.ElementPlacement> |
ABBREVIATIONS_PLACEMENT |
static com.vladsch.flexmark.util.options.DataKey<com.vladsch.flexmark.util.format.options.ElementPlacementSort> |
ABBREVIATIONS_SORT |
static com.vladsch.flexmark.util.options.DataKey<Boolean> |
RECOMPUTE_ABBREVIATIONS_MAP |
static com.vladsch.flexmark.util.options.DataKey<Boolean> |
USE_LINKS
A
DataKey that is used to set the use links option when true, default is false and abbr tag will be used in the rendered HTML. |
| Constructor and Description |
|---|
AbbreviationExtension() |
| Modifier and Type | Method and Description |
|---|---|
static com.vladsch.flexmark.Extension |
create() |
void |
extend(com.vladsch.flexmark.formatter.internal.Formatter.Builder builder) |
void |
extend(com.vladsch.flexmark.html.HtmlRenderer.Builder rendererBuilder,
String rendererType) |
void |
extend(com.vladsch.flexmark.parser.Parser.Builder parserBuilder) |
void |
parserOptions(com.vladsch.flexmark.util.options.MutableDataHolder options) |
void |
rendererOptions(com.vladsch.flexmark.util.options.MutableDataHolder options) |
boolean |
transferReferences(com.vladsch.flexmark.util.options.MutableDataHolder document,
com.vladsch.flexmark.util.options.DataHolder included) |
public static final com.vladsch.flexmark.util.options.DataKey<com.vladsch.flexmark.util.KeepType> ABBREVIATIONS_KEEP
DataKey that is used to set the behavior of the abbreviations repository when duplicates are defined. KeepTypepublic static final com.vladsch.flexmark.util.options.DataKey<AbbreviationRepository> ABBREVIATIONS
DataKey that is used to get the document's Node repository holding all the abbreviations defined in the current document.public static final com.vladsch.flexmark.util.options.DataKey<Boolean> USE_LINKS
DataKey that is used to set the use links option when true, default is false and abbr tag will be used in the rendered HTML.public static final com.vladsch.flexmark.util.options.DataKey<com.vladsch.flexmark.util.format.options.ElementPlacement> ABBREVIATIONS_PLACEMENT
public static final com.vladsch.flexmark.util.options.DataKey<com.vladsch.flexmark.util.format.options.ElementPlacementSort> ABBREVIATIONS_SORT
public static final com.vladsch.flexmark.util.options.DataKey<Boolean> RECOMPUTE_ABBREVIATIONS_MAP
public static com.vladsch.flexmark.Extension create()
public void extend(com.vladsch.flexmark.formatter.internal.Formatter.Builder builder)
extend in interface com.vladsch.flexmark.formatter.internal.Formatter.FormatterExtensionpublic void rendererOptions(com.vladsch.flexmark.util.options.MutableDataHolder options)
rendererOptions in interface com.vladsch.flexmark.formatter.internal.Formatter.FormatterExtensionrendererOptions in interface com.vladsch.flexmark.html.HtmlRenderer.HtmlRendererExtensionpublic void parserOptions(com.vladsch.flexmark.util.options.MutableDataHolder options)
parserOptions in interface com.vladsch.flexmark.parser.Parser.ParserExtensionpublic boolean transferReferences(com.vladsch.flexmark.util.options.MutableDataHolder document,
com.vladsch.flexmark.util.options.DataHolder included)
transferReferences in interface com.vladsch.flexmark.parser.Parser.ReferenceHoldingExtensionpublic void extend(com.vladsch.flexmark.parser.Parser.Builder parserBuilder)
extend in interface com.vladsch.flexmark.parser.Parser.ParserExtensionpublic void extend(com.vladsch.flexmark.html.HtmlRenderer.Builder rendererBuilder,
String rendererType)
extend in interface com.vladsch.flexmark.html.HtmlRenderer.HtmlRendererExtensionCopyright © 2018. All rights reserved.