Skip to content

Commit 1c60f9f

Browse files
zimegClaudeclaude
authored
fix(block-kit): set verbatim false on the card block example text (#358)
Co-authored-by: Claude <svc-devxp-claude@slack-corp.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 55cc221 commit 1c60f9f

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎block-kit/src/blocks/card.py‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@ def example01() -> CardBlock:
1212
"""
1313
block = CardBlock(
1414
icon=ImageElement(image_url="https://picsum.photos/36/36", alt_text="Icon"),
15-
title=MarkdownTextObject(text="Lumon Industries"),
16-
subtitle=MarkdownTextObject(text="Committed to work-life balance"),
15+
title=MarkdownTextObject(
16+
text="Lumon Industries",
17+
verbatim=False,
18+
),
19+
subtitle=MarkdownTextObject(
20+
text="Committed to work-life balance",
21+
verbatim=False,
22+
),
1723
hero_image=ImageElement(
1824
image_url="https://picsum.photos/400/300", alt_text="Sample hero image"
1925
),
20-
body=MarkdownTextObject(text="Please enjoy each card equally."),
26+
body=MarkdownTextObject(
27+
text="Please enjoy each card equally.",
28+
verbatim=False,
29+
),
2130
actions=[
2231
ButtonElement(
2332
text=PlainTextObject(text="Action Button", emoji=False),

‎block-kit/tests/blocks/test_card.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ def test_example01():
1616
"title": {
1717
"type": "mrkdwn",
1818
"text": "Lumon Industries",
19+
"verbatim": False,
1920
},
2021
"subtitle": {
2122
"type": "mrkdwn",
2223
"text": "Committed to work-life balance",
24+
"verbatim": False,
2325
},
2426
"hero_image": {
2527
"type": "image",
@@ -29,6 +31,7 @@ def test_example01():
2931
"body": {
3032
"type": "mrkdwn",
3133
"text": "Please enjoy each card equally.",
34+
"verbatim": False,
3235
},
3336
"actions": [
3437
{

0 commit comments

Comments
 (0)