Package org.commonmark.ext.gfm.alerts
Class AlertsExtension.Builder
- java.lang.Object
-
- org.commonmark.ext.gfm.alerts.AlertsExtension.Builder
-
- Enclosing class:
- AlertsExtension
public static class AlertsExtension.Builder extends java.lang.ObjectBuilder for configuring the alerts extension.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.String>customTypes
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertsExtension.BuilderaddCustomType(java.lang.String type, java.lang.String title)Adds a custom alert type with a display title.Extensionbuild()
-
-
-
Method Detail
-
addCustomType
public AlertsExtension.Builder addCustomType(java.lang.String type, java.lang.String title)
Adds a custom alert type with a display title.This can also be used to override the display title of standard GFM types (e.g., for localization).
- Parameters:
type- the alert type (must be uppercase)title- the display title for this alert type- Returns:
this
-
-