- All Implemented Interfaces:
Serializable
,Comparable<MarkdownMode>
Rendering mode of markdown.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
To string.static MarkdownMode
Returns the enum constant of this type with the specified name.static MarkdownMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MARKDOWN
Render a document as plain Markdown, just like README files are rendered. -
GFM
Render a document as user-content, e.g. like user comments or issues are rendered. In GFM mode, hard line breaks are always taken into account, and issue and user mentions are linked accordingly.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
To string.- Overrides:
toString
in classEnum<MarkdownMode>
- Returns:
- the string
-