Skip to content

divider block under the list incorrectly turns the whole list into a header #27

@sidorares

Description

@sidorares

input:

Test
- test 1
- test 2
---

test3

Actual result:

[
  {
    "type": "header",
    "text": {
      "type": "plain_text",
      "text": "Test\n- test 1\n- test 2"
    }
  },
  {
    "type": "section",
    "text": {
      "type": "mrkdwn",
      "text": "test3"
    }
  }
]

Expected result:

[
  {
    "type": "section",
    "text": {
      "type": "mrkdwn",
      "text": "Test"
    }
  },
  {
    "type": "section",
    "text": {
      "type": "mrkdwn",
      "text": "• test 1\n• test 2"
    }
  },
  {
    "type": "divider"
  },
  {
    "type": "section",
    "text": {
      "type": "mrkdwn",
      "text": "test3"
    }
  }
]

This is how github renders it:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions