Repository navigation
fix(block-kit): set verbatim false on the card block example text - #102
Merged
Merged
Conversation
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
zimeg
marked this pull request as ready for review
November 5, 2026 19:36
mwbrooks
approved these changes
Nov 6, 2026
| .title(BlockCompositions.markdownText("Lumon Industries")) | ||
| .subtitle(BlockCompositions.markdownText("Committed to work-life balance")) | ||
| .title(BlockCompositions.markdownText( | ||
| mt -> mt.text("Lumon Industries").verbatim(false))) |
Member
There was a problem hiding this comment.
praise: Setting .verbatim(false) inline on each text object is the right call, since the SDK only serializes verbatim when it is set. The test now pins the exact docs JSON too 🎴
Member
Author
|
🌟 Thanks for the kind review and merge @mwbrooks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds
"verbatim": falseto the card block example'smrkdwntext objects to match the card block docs.title,subtitle, andbodynow set.verbatim(false)inline in the builder, since the SDK only serializesverbatimwhen it's set.CardTestexpects$.title.verbatim,$.subtitle.verbatim, and$.body.verbatimasfalse(previously missing) to match the docs JSON.Testing
Card.example01()to a test channel withchat.postMessageand confirm the card renders and the stored block keeps"verbatim": falseon the title, subtitle, and body.🤖 Generated with Claude Code