Skip to content

Markdown not supported in Options even when Slack allows them. #128

@nickovs

Description

@nickovs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions