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

Wrong wrapping of markdown list items at higher levels #54

Open
NikolausDemmel opened this issue Nov 25, 2022 · 0 comments
Open

Wrong wrapping of markdown list items at higher levels #54

NikolausDemmel opened this issue Nov 25, 2022 · 0 comments

Comments

@NikolausDemmel
Copy link

In markdown, wrapping paragraphs works great for list items at the first level.

However, at higher levels it behaves strangely and removes some text from the start.

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sit amet dapibus massa. Ut feugiat risus ut neque facilisis, faucibus tempus est posuere.
  - Donec finibus in mi at imperdiet. In hac habitasse platea dictumst.

--> "Wrap Paragraph" with the cursor on the "Donec..." line results in:

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sit amet dapibus massa. Ut feugiat risus ut neque facilisis, faucibus tempus est posuere.
  - nec finibus in mi at imperdiet. In hac habitasse platea dictumst.

If you first format the Lorem ... line (which works correctly):

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sit amet dapibus massa. Ut feugiat
  risus ut neque facilisis, faucibus tempus est posuere.
  - Donec finibus in mi at imperdiet. In hac habitasse platea dictumst.

and then the "Donec..." line, you get the following (also wrong):

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sit amet dapibus massa. Ut feugiat
  risus ut neque facilisis, faucibus tempus est posuere. - Donec finibus in mi at imperdiet. In hac
  habitasse platea dictumst.
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

1 participant