In Slack's API, whether the Option object is allowed to take mrkdwn text or not depends the context. According to the documentation the text field of an Option is:
A text object that defines the text shown in the option on the menu. Overflow, select, and multi-select menus can only use plain_text objects, while radio buttons and checkboxes can use mrkdwn text objects. Maximum length for the text in this field is 75 characters.
Pre version 2.0, blockkit provided both MarkdownOption() and PlainOption() classes to properly support this. In the current code attempting Option().text(Text("*foo*: bar")) fails to build, no matter what context it is built in.
The current behaviour both makes blockkit>=2.0 incomplete in its support of Slack's API and is a regression from blockkit<2.0. It is also preventing me upgrading my app, since it uses mrkdwn formatting for a lot of checkboxes and radio buttons. It would be helpful if the full API was properly supported.
In Slack's API, whether the Option object is allowed to take
mrkdwntext or not depends the context. According to the documentation thetextfield of an Option is:Pre version 2.0,
blockkitprovided bothMarkdownOption()andPlainOption()classes to properly support this. In the current code attemptingOption().text(Text("*foo*: bar"))fails to build, no matter what context it is built in.The current behaviour both makes
blockkit>=2.0incomplete in its support of Slack's API and is a regression fromblockkit<2.0. It is also preventing me upgrading my app, since it usesmrkdwnformatting for a lot of checkboxes and radio buttons. It would be helpful if the full API was properly supported.