public class MarkupContent
extends java.lang.Object
plaintext and
markdown as markup kinds.
If the kind is markdown then the value can contain fenced code blocks like in GitHub issues.
See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting
Please Note that clients might sanitize the return markdown. A client could decide to remove HTML from the markdown to avoid script execution.
Since 3.3.0
| Constructor and Description |
|---|
MarkupContent() |
MarkupContent(java.lang.String kind,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKind()
The type of the Markup.
|
java.lang.String |
getValue()
The content itself.
|
int |
hashCode() |
void |
setKind(java.lang.String kind)
The type of the Markup.
|
void |
setValue(java.lang.String value)
The content itself.
|
java.lang.String |
toString() |
public MarkupContent()
public MarkupContent(java.lang.String kind,
java.lang.String value)
@Pure public java.lang.String getKind()
See MarkupKind for allowed values.
public void setKind(java.lang.String kind)
See MarkupKind for allowed values.
@Pure public java.lang.String getValue()
public void setValue(java.lang.String value)
@Pure public java.lang.String toString()
toString in class java.lang.Object@Pure public boolean equals(java.lang.Object obj)
equals in class java.lang.Object@Pure public int hashCode()
hashCode in class java.lang.Object