Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Markdown lists are reflowed incorrectly #4

Closed
rhysforyou opened this issue Feb 28, 2014 · 7 comments
Closed

Markdown lists are reflowed incorrectly #4

rhysforyou opened this issue Feb 28, 2014 · 7 comments

Comments

@rhysforyou
Copy link

Like it says on the tin. When I try to reflow a markdown list item such as the following:

- Wow what a long item this is it'd be a good idea to wrap this to make things a little neater

I get this result

- Wow what a long item this is it'd be a good idea to wrap this to make things a
- little neater

Ideally it should look like this

- Wow what a long item this is it'd be a good idea to wrap this to make things a
  little neater
@biffen
Copy link

biffen commented Oct 22, 2014

+1

@nathancarter
Copy link

+1

Furthermore, if you have a list of multiple items, like so,

 * pretend thing1 were really long
 * pretend thing2 were really long
 * pretend thing3 were really long

and you try to reflow, it unites them into a single list item if it can, or multiple ones if it must, like so.

 * pretend thing1 were really long pretend thing2 were really long pretend
 * thing3 were really long

This makes a lot of sense in a .c file in between /* and */, but not so much in a .md or .litcoffee file.

@nathancarter
Copy link

And FWIW, this issue is actually the TODO marked in the code at line 21.

@igor-kupczynski
Copy link

+1

@jonleung
Copy link

SOOO MUUUUCH +1

satchm0h added a commit to satchm0h/autoflow that referenced this issue Mar 8, 2016
- Fixed reflow of lists with '-' line prefix
  - Added test
- Fixed reflow of '/*' block comments
  - Added test
- Added support for reflow of '%' single line comments
  - Added test
- Added support for reflow of ';;' single line comments
  - Added test
- Added support for reflow of '>' ascii email inclusions
  - Added test
- Added test for '#' single line comments
- Added test for '//' single line comments
@lemontheme
Copy link

lemontheme commented Jan 26, 2017

Has any progress been made on this front, by any chance? I'm having trouble understanding why behavior that (in Vim, at least) can be added with minor adjustments to a regex pattern is still missing after more than two years... Or is everyone just using softwraps for Markdown these days? Anyway, for what it's worth, the Magic Reflow package covers this functionality. It would just be nice to see it added to stock Atom.

@50Wliu
Copy link
Contributor

50Wliu commented Dec 16, 2017

Fixed by #45.

@50Wliu 50Wliu closed this as completed Dec 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants