Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sidorares opened this issue Nov 13, 2024 · 0 comments

Comments

@sidorares
Copy link

sidorares commented Nov 13, 2024

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

@sidorares sidorares changed the title divider block under the list incorrectly turns makes the whole list into a header divider block under the list incorrectly turns the whole list into a header Nov 13, 2024
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

No branches or pull requests

1 participant