public class TypographicExtension extends Object implements com.vladsch.flexmark.parser.Parser.ParserExtension, com.vladsch.flexmark.html.HtmlRenderer.HtmlRendererExtension
Create it with create() and then configure it on the builders
(Parser.Builder.extensions(Iterable),
HtmlRenderer.Builder.extensions(Iterable)).
The parsed typographic text is turned into TypographicQuotes and TypographicSmarts nodes.
| Modifier and Type | Field and Description |
|---|---|
static com.vladsch.flexmark.util.options.DataKey<String> |
ANGLE_QUOTE_CLOSE |
static com.vladsch.flexmark.util.options.DataKey<String> |
ANGLE_QUOTE_OPEN |
static com.vladsch.flexmark.util.options.DataKey<String> |
ANGLE_QUOTE_UNMATCHED |
static com.vladsch.flexmark.util.options.DataKey<String> |
DOUBLE_QUOTE_CLOSE |
static com.vladsch.flexmark.util.options.DataKey<String> |
DOUBLE_QUOTE_OPEN |
static com.vladsch.flexmark.util.options.DataKey<String> |
DOUBLE_QUOTE_UNMATCHED |
static com.vladsch.flexmark.util.options.DataKey<String> |
ELLIPSIS |
static com.vladsch.flexmark.util.options.DataKey<String> |
ELLIPSIS_SPACED |
static com.vladsch.flexmark.util.options.DataKey<String> |
EM_DASH |
static com.vladsch.flexmark.util.options.DataKey<String> |
EN_DASH |
static com.vladsch.flexmark.util.options.DataKey<Boolean> |
ENABLE_QUOTES |
static com.vladsch.flexmark.util.options.DataKey<Boolean> |
ENABLE_SMARTS |
static com.vladsch.flexmark.util.options.DataKey<String> |
SINGLE_QUOTE_CLOSE |
static com.vladsch.flexmark.util.options.DataKey<String> |
SINGLE_QUOTE_OPEN |
static com.vladsch.flexmark.util.options.DataKey<String> |
SINGLE_QUOTE_UNMATCHED |
static com.vladsch.flexmark.util.options.DataKey<Boolean> |
TYPOGRAPHIC_QUOTES
Deprecated.
use
ENABLE_QUOTES |
static com.vladsch.flexmark.util.options.DataKey<Boolean> |
TYPOGRAPHIC_SMARTS
Deprecated.
use
ENABLE_SMARTS |
| Modifier and Type | Method and Description |
|---|---|
static com.vladsch.flexmark.Extension |
create() |
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) |
public static final com.vladsch.flexmark.util.options.DataKey<Boolean> ENABLE_QUOTES
public static final com.vladsch.flexmark.util.options.DataKey<Boolean> ENABLE_SMARTS
public static final com.vladsch.flexmark.util.options.DataKey<Boolean> TYPOGRAPHIC_QUOTES
ENABLE_QUOTESpublic static final com.vladsch.flexmark.util.options.DataKey<Boolean> TYPOGRAPHIC_SMARTS
ENABLE_SMARTSpublic static final com.vladsch.flexmark.util.options.DataKey<String> ANGLE_QUOTE_CLOSE
public static final com.vladsch.flexmark.util.options.DataKey<String> ANGLE_QUOTE_OPEN
public static final com.vladsch.flexmark.util.options.DataKey<String> ANGLE_QUOTE_UNMATCHED
public static final com.vladsch.flexmark.util.options.DataKey<String> DOUBLE_QUOTE_CLOSE
public static final com.vladsch.flexmark.util.options.DataKey<String> DOUBLE_QUOTE_OPEN
public static final com.vladsch.flexmark.util.options.DataKey<String> DOUBLE_QUOTE_UNMATCHED
public static final com.vladsch.flexmark.util.options.DataKey<String> ELLIPSIS
public static final com.vladsch.flexmark.util.options.DataKey<String> ELLIPSIS_SPACED
public static final com.vladsch.flexmark.util.options.DataKey<String> EM_DASH
public static final com.vladsch.flexmark.util.options.DataKey<String> EN_DASH
public static final com.vladsch.flexmark.util.options.DataKey<String> SINGLE_QUOTE_CLOSE
public static final com.vladsch.flexmark.util.options.DataKey<String> SINGLE_QUOTE_OPEN
public static final com.vladsch.flexmark.util.options.DataKey<String> SINGLE_QUOTE_UNMATCHED
public static com.vladsch.flexmark.Extension create()
public void rendererOptions(com.vladsch.flexmark.util.options.MutableDataHolder options)
rendererOptions 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 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 © 2019. All rights reserved.