public class MacroExtension 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 macros text is turned into Macro nodes.
| Modifier and Type | Field and Description |
|---|---|
static DataKey<Boolean> |
ENABLE_BLOCK_MACROS |
static DataKey<Boolean> |
ENABLE_INLINE_MACROS |
static DataKey<Boolean> |
ENABLE_RENDERING |
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 void rendererOptions(MutableDataHolder options)
rendererOptions in interface HtmlRenderer.HtmlRendererExtensionpublic void extend(HtmlRenderer.Builder rendererBuilder, String rendererType)
extend in interface HtmlRenderer.HtmlRendererExtensionpublic static Extension create()
public void parserOptions(MutableDataHolder options)
parserOptions in interface Parser.ParserExtensionpublic void extend(Parser.Builder parserBuilder)
extend in interface Parser.ParserExtensionCopyright © 2018. All rights reserved.