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> |
IMAGE_PREFIX_ABSOLUTE
Image prefix to use for absolute wiki image sources starting with the
'/' character. |
static DataKey<String> |
LINK_ESCAPE_CHARS
Characters to escape in wiki links.
|
static DataKey<String> |
LINK_FILE_EXTENSION |
static DataKey<Boolean> |
LINK_FIRST_SYNTAX |
static DataKey<String> |
LINK_PREFIX |
static DataKey<String> |
LINK_PREFIX_ABSOLUTE
Link prefix to use for absolute wiki links starting with the
'/' character. |
static DataKey<String> |
LINK_REPLACE_CHARS
Characters to replace
LINK_ESCAPE_CHARS with. |
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 DataKey<String> LINK_PREFIX_ABSOLUTE
'/' character.
Will get its value from option LINK_PREFIX until its own value is set.
public static final DataKey<String> IMAGE_PREFIX_ABSOLUTE
'/' character.
Will get its value from option IMAGE_PREFIX until its own value is set.
public static final DataKey<String> LINK_ESCAPE_CHARS
Each character in the configuration string is replaced with a character
at the corresponding index in the string given by the configuration
option LINK_REPLACE_CHARS.
public static final DataKey<String> LINK_REPLACE_CHARS
LINK_ESCAPE_CHARS with.LINK_ESCAPE_CHARSpublic 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 © 2018. All rights reserved.