Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions block-kit/src/main/java/blocks/Alert.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public class Alert {
* An informational alert block.
*/
public static AlertBlock example01() {
AlertBlock block =
Blocks.alert(a -> a.text(BlockCompositions.markdownText("The work is mysterious and important."))
.level("info"));
AlertBlock block = Blocks.alert(a -> a.text(BlockCompositions.markdownText(
mt -> mt.text("The work is mysterious and important.").verbatim(false)))
.level("info"));
return block;
}
}
3 changes: 2 additions & 1 deletion block-kit/src/test/java/blocks/AlertTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public void testExample01() {
"type": "alert",
"text": {
"type": "mrkdwn",
"text": "The work is mysterious and important."
"text": "The work is mysterious and important.",
"verbatim": false
},
"level": "info"
}
Expand Down