public static enum Options.InWordEmphasis extends Enum<Options.InWordEmphasis>
Enum Constant and Description |
---|
ADD_SPACES
Adds spaces around the in-word emphasis characters.
|
NORMAL
Uses the default mode, which allows in-word emphasis.
|
REMOVE_EMPHASIS
Removes in-word emphasis altogether.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAdditionalSpacingNeeded()
Returns true when Remark should add spaces around the emphasis characters.
|
boolean |
isEmphasisPreserved()
Returns whether or not to preserve emphasis at all.
|
static Options.InWordEmphasis |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Options.InWordEmphasis[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Options.InWordEmphasis NORMAL
'*'
), this mode works with parsers that disable
in-word underscores ('_'
) but not in-word asterisks.public static final Options.InWordEmphasis ADD_SPACES
My<em>Example</em>Word
becomes My *Example* Word
. This will actually
render as My <em>Example</em> Word
.public static final Options.InWordEmphasis REMOVE_EMPHASIS
My<em>Example</em>Word
becomes MyExampleWord
.public static Options.InWordEmphasis[] values()
for (Options.InWordEmphasis c : Options.InWordEmphasis.values()) System.out.println(c);
public static Options.InWordEmphasis valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isEmphasisPreserved()
public boolean isAdditionalSpacingNeeded()
Copyright © 2017. All rights reserved.