1. Docs
  2. Formulas
  3. Functions

TO_MARKDOWN_CALLOUT

Format text as a markdown callout, the GitHub-flavored alert built on a blockquote. The type defaults to NOTE and must be a single word of letters, such as TIP, IMPORTANT, WARNING, or CAUTION. Blank text returns the callout title on its own.

Categories: Text

Syntax

TO_MARKDOWN_CALLOUT(text, [type])

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": "The host has been isolated"
4
}
5
}

Formula

TO_MARKDOWN_CALLOUT(my_action.message)

Output

"> [!NOTE]\n> The host has been isolated"

Example 2: The type is a single word of letters, and it is upcased for you.

Input

1
{
2
"my_action": {
3
"message": "The host has been isolated"
4
}
5
}

Formula

TO_MARKDOWN_CALLOUT(my_action.message, "warning")

Output

"> [!WARNING]\n> The host has been isolated"
Was this helpful?