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

Support nested list #10

Merged
merged 8 commits into from Mar 12, 2019
Merged

Support nested list #10

merged 8 commits into from Mar 12, 2019

Conversation

yhatt
Copy link
Owner

@yhatt yhatt commented Mar 12, 2019

jsx-slack had allowed lists with only one level. And now, we will get the support of nested <ul> and <ol> by improved building process of mimicked text. It would get better HTML compatibility.

<Block>
  <section>
    <p>
      <strong>Nested list</strong><br />
      (from <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul#Nesting_list">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul#Nesting_list</a>)
    </p>
  </section>
  <hr />
  <section>
    <ul>
      <li>first item</li>
      <li>second item
        <ul>
          <li>second item first subitem</li>
          <li>second item second subitem
            <ul>
            <li>second item second subitem first sub-subitem</li>
            <li>second item second subitem second sub-subitem</li>
            <li>second item second subitem third sub-subitem</li>
            </ul>
          </li>
          <li>second item third subitem</li>
        </ul>
      </li>
      <li>third item</li>
    </ul>
  </section>
</Block>
HTML Slack
HTML Slack

@yhatt yhatt changed the title Support sublist Support sub list Mar 12, 2019
@yhatt yhatt changed the title Support sub list Support nested list Mar 12, 2019
@yhatt yhatt merged commit c01f641 into master Mar 12, 2019
@yhatt yhatt deleted the sublist branch March 12, 2019 09:26
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.

None yet

1 participant