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

Marktext should not add new lines between numbered list items #2479

Open
1 task done
N0rbert opened this issue Jan 17, 2021 · 3 comments
Open
1 task done

Marktext should not add new lines between numbered list items #2479

N0rbert opened this issue Jan 17, 2021 · 3 comments

Comments

@N0rbert
Copy link

N0rbert commented Jan 17, 2021

Description

Marktext adds new lines between numbered list items

  • Can you reproduce the issue?

Steps to reproduce

  1. Have simple Markdown document with numbered list inside:

    Some text before list:
    
    1. First
    1. Second with subitems
    
       * red
       * orange
       * blue
    
    1. Third
    
    Some text after list.
    

    Including last line it has 13 lines of code and 126 bytes in size.

  2. Open this document using MarkText

  3. Close MarkText confirming document save

Expected behavior:

the MarkText does not change the document

Actual behavior:

the MarkText changed the document contents and added empty lines between ordered list items:

Some text before list:

1. First

2. Second with subitems
   
   * red
   * orange
   * blue

3. Third

Some text after list.

Note: such document changes add difficulties to version control. The 1., 2. and 3. are already known as #2035 .

Versions

  • Mark Text version: MarkText 0.16.3 (from FlatPak)
  • Operating system: Ubuntu MATE 18.04 LTS
@N0rbert
Copy link
Author

N0rbert commented Jan 17, 2021

I'm may be wrong if https://www.npmjs.com/package/remark-lint-list-item-spacing is correct .

@YalandHong
Copy link

Possible dup of #2189

In order to reduce duplications, please close this issue and report your problems there. Thanks!

@N0rbert
Copy link
Author

N0rbert commented Feb 6, 2022

Still not fixed in v0.17.0-rc.1.

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

2 participants