public class Alert extends CustomBlock
Alert block for highlighting important information using [!TYPE] syntax.
See Also:
  • Field Details

    • type

      private final String type
  • Constructor Details

    • Alert

      public Alert(String type)
  • Method Details

    • getType

      public String 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
      
       
      
       > [!NOTE] Custom title
       > Body text
      
       
      - Examples where this would be false:
      
       > [!NOTE]
      
       
      
       > [!NOTE]
       >
       >
      
       
      
       > [!NOTE] Custom title