Rich Content Formatting

Alert Macro

Alert Macro

Alert Macro screenshot

What It Does

The Alert macro creates a styled banner for informational messages, warnings, errors, or success confirmations. Alerts have a colored left border and icon that immediately signals the message type to the reader.

Alert Types

TypeUse For
Work in progressPage being actively edited or drafted
InfoGeneral information, notes, tips
WarningCaution, important considerations
ErrorErrors, failures, destructive actions
SuccessConfirmations, completed steps
SensitiveSensitive or restricted information
OutdatedContent that may be stale or superseded

Configuration Options

SettingOptions
Alert typeWork in progress, Success, Error, Info, Sensitive, Warning, Outdated
StyleImage Alert (with icon image) or Simple Alert (text only)
TitleBold heading for the alert (max 50 characters, required)
BodyAlert message text (max 500 characters, required)
ImageCustom image upload - only visible when Style is Image Alert
Permanently dismissCheckbox - adds a dismiss option so readers can hide the alert permanently (stored in browser local storage)
Background colorColor picker or custom hex
Text colorColor picker or custom hex

Known Limitations

  • The Permanently Dismiss option stores the dismissed state in the browser's local storage - it resets if the user clears browser data or switches devices

Best Practices

  • Use Info for routine tips and asides
  • Reserve Error for genuine error states or dangerous actions
  • Keep alert body text concise - if you need more than 3 sentences, consider an Advanced Expand section instead