public class WikiLinkExtension 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 emoji shortcuts text regions are turned into WikiLink nodes.
| Modifier and Type | Field and Description |
|---|---|
static DataKey<Boolean> |
ALLOW_ANCHOR_ESCAPE |
static DataKey<Boolean> |
ALLOW_ANCHORS |
static DataKey<Boolean> |
ALLOW_INLINES |
static DataKey<Boolean> |
ALLOW_PIPE_ESCAPE |
static DataKey<Boolean> |
DISABLE_RENDERING |
static DataKey<String> |
IMAGE_FILE_EXTENSION |
static DataKey<Boolean> |
IMAGE_LINKS |
static DataKey<String> |
IMAGE_PREFIX |
static DataKey<String> |
LINK_FILE_EXTENSION |
static DataKey<Boolean> |
LINK_FIRST_SYNTAX |
static DataKey<String> |
LINK_PREFIX |
static LinkType |
WIKI_LINK |
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) |
void |
parserOptions(MutableDataHolder options) |
void |
rendererOptions(MutableDataHolder options) |
public static final LinkType WIKI_LINK
public static Extension create()
public void rendererOptions(MutableDataHolder options)
rendererOptions in interface HtmlRenderer.HtmlRendererExtensionpublic void parserOptions(MutableDataHolder options)
parserOptions in interface Parser.ParserExtensionpublic 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.