Skip to content

Nested (check)lists? #15

Description

@daturkel

Hi, thanks for the great extension!

I was wondering if support could be added for nested checklists:

- [x] top
- [x] level
- [ ] items
  - [ ] second level
    - [ ] third level

would become

<ul class="checklist">
<li><input type="checkbox" disabled checked>top</li>
<li><input type="checkbox" disabled checked>level</li>
<li><input type="checkbox" disabled>items
  <ul class="checklist">
    <li><input type="checkbox" disabled>second level
      <ul class="checklist">
        <li><input type="checkbox" disabled>third level</li>
      </ul>
    </li>
  </ul>
</li>
</ul>

It's currently implemented in Github markdown:

  • first level
    • second level

How difficult would something like this be to add? Or maybe it already works and I just am getting the syntax wrong?

Thanks again!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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