TO_MARKDOWN_HEADING
Format text as a markdown heading. The level defaults to 1 and must be a whole number between 1 and 6. Whitespace is collapsed, because a heading is a single-line construct and an embedded newline would start a separate paragraph.
Categories: Text
Syntax
TO_MARKDOWN_HEADING(text, [level])
Examples
Example 1
Input
1
{
2
"my_action": {
3
"title": "Incident summary"
4
}
5
}
Formula
TO_MARKDOWN_HEADING(my_action.title)
Output
"# Incident summary"
Example 2
Input
1
{
2
"my_action": {
3
"title": "Incident summary"
4
}
5
}
Formula
TO_MARKDOWN_HEADING(my_action.title, 2)
Output
"## Incident summary"