Skip to content

Allow to use text elements for section text field#1

Open
cyb- wants to merge 2 commits intomainfrom
feature/section-text-field
Open

Allow to use text elements for section text field#1
cyb- wants to merge 2 commits intomainfrom
feature/section-text-field

Conversation

@cyb-
Copy link
Copy Markdown
Owner

@cyb- cyb- commented Aug 20, 2024

What?

Allow to set Section text field with text elements.

Before

section '*Hello* world :wave:'
{
  "type": "section",
  "text": {
    "type": "mrkdwn",
    "text": "*Hello* world :wave:",
    "verbatim": false
  }
}

After

section do
  text do
    plain_text 'Hello world :wave:'
  end
end
{
  "type": "section",
  "text": {
    "type": "plain_text",
    "text": "Hello world :wave:",
    "emoji": true
  }
}

Why?

  • Was initially implemented using mrkdwn object when provided as argument.
  • Allow to optionally use plain_text object as mentioned in the documentation.

@cyb- cyb- self-assigned this Aug 20, 2024
@cyb- cyb- force-pushed the feature/section-text-field branch from 42c4cda to baf4c58 Compare August 20, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant