Skip to content

List parse error #870

Closed
Closed

Description

@Jocs

Description

- [x] foo
- [x] bar
- zar
- rar

write markdown above in source code mode, it will be parsed as one bullet list. not a task list and a bullet list.

  • Can you reproduce the issue?

Steps to reproduce

  1. write markdown above in source code mode.
  2. turn to preview mode.
  3. only one bullet list show(by front icon)

Expected behavior:

Two list one is task list and the other is bullet list.

Actual behavior:

Only one bullet list shown.

Link to an example: [optional]

Versions

  • Mark Text: master
  • Operating system: All

Activity

  1. added
    🐛 bug
    🦁 need discuss
    on Apr 5, 2019
  2. Jocs commented on Apr 5, 2019

    @Jocs
    MemberAuthor

    GitHub also recognize it as one list, But I think we need to distinguish task list and bullet list by front icon, @fxha what do you think?

  3. fxha commented on Apr 5, 2019

    @fxha
    Contributor

    According to GFM Spec markedjs is correct and muya not because it doesn't exist a task list, just a task list item which must be inside a bullet list. So this is a bug in muya because a task list don't exist. I think we should simply show the bullet list icon and remove the ag-task-list marker.

  4. self-assigned this
    on Apr 9, 2019
  5. added a commit that references this issue on Apr 21, 2019
    7c00e87
  6. added a commit that references this issue on Aug 7, 2019
    463bf23
  7. added a commit that references this issue on Jun 21, 2026
    fbb09d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🦁 need discuss🐛 bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions