java.lang.Object
org.commonmark.node.Node
org.commonmark.node.Block
org.commonmark.node.CustomBlock
org.commonmark.ext.gfm.alerts.Alert
Alert block for highlighting important information using
[!TYPE] syntax.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.commonmark.node.CustomBlock
acceptMethods inherited from class org.commonmark.node.Node
addSourceSpan, appendChild, getFirstChild, getLastChild, getNext, getPrevious, getSourceSpans, insertAfter, insertBefore, prependChild, setSourceSpans, toString, toStringAttributes, unlink
-
Field Details
-
type
-
-
Constructor Details
-
Alert
-
-
Method Details
-
getType
-
hasBody
public boolean hasBody()- Returns:
- Whether this alert has any body content (not including the title).
- Examples where this would be
true:> [!NOTE] > Body text
- Examples where this would be> [!NOTE] Custom title > Body textfalse:> [!NOTE]> [!NOTE] > >> [!NOTE] Custom title
-