Skip to content

Loose/tight list error when update paragraph to list #831

Closed

Description

@Jocs

Description

Loose/tight list wrong behavior.

  • Can you reproduce the issue?

Steps to reproduce

  1. step 1, set preferLooseList to true in user preference file.
- foo
- bar
-<cursor>zar
- foo
- bar
  1. press space key on keyboard.

Expected behavior:

it show became one loose list.

Actual behavior:

it became three list, two tight list and one middle loose list. when you change to source code mode, then back, it became one loose list.

Link to an example: [optional]

Versions

  • Mark Text: All
  • Operating system: All

Activity

  1. added
    🐛 bug
    on Mar 28, 2019
  2. Jocs commented on Mar 28, 2019

    @Jocs
    MemberAuthor

    Another list problem:

    1. Set preferLooseList to false.
    - foo
    
    - bar
    
    -<cursor>zar
    
    - foo
    
    - bar
    1. press space on keyboard.

    Expect behavior:

    It became one loose list.

    Actual behavior:

    It became three list, two loose list and one tight list.

  3. added a commit that references this issue on Mar 28, 2019
    5f1c123
  4. fxha commented on Mar 28, 2019

    @fxha
    Contributor

    @Jocs I cannot reproduce this with the latest master?

  5. Jocs commented on Mar 28, 2019

    @Jocs
    MemberAuthor

    @fxha because of #707 ? A PR is raised to fix these two issues, #829

  6. fxha commented on Mar 28, 2019

    @fxha
    Contributor

    @Jocs Another issue on master. Insert code below in source-code mode and switch back to preview. -bar is displayed as list item too. I think somewhere missing a space check.

    - foo
    - foo 
    -bar
    - foo 
    - foo
    
  7. Jocs commented on Mar 29, 2019

    @Jocs
    MemberAuthor

    I think this is another issue that not belongs to #829, I'll open another PR to fix it.

  8. reopened this on Mar 29, 2019
  9. self-assigned this
    on Mar 29, 2019
  10. added a commit that references this issue on Jun 21, 2026
    ee4bac6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🐛 bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions