BransonGitomeh / pagedown

Automatically exported from code.google.com/p/pagedown
Other
0 stars 0 forks source link

Fix the numbered list creation algorithm #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This issue was already filed at the old 'wmd-new' repo.

The issue is still valid. I'm copypasting this as I just run into the very same 
problem.

What steps will reproduce the problem?
1. Type a list with each step on its own line

one
two
three

2. Highlight list and click the numbered list button
3. Rage at the resulting list

  1. one two three

What is the expected output? What do you see instead?

I want this:

one
two
three

to look like this:

 1. one
 2. two
 3. three

What version of the product are you using? On what operating system?

unknown version in chrome/ie

Please provide any additional information below.

The type-list/highlight/format-list pattern is common and any normal editor 
allows you to do this without deformatting your list and placing multiple lines 
on a single line.  Stop doing this, please.

Original issue reported on code.google.com by flavio.c...@gmail.com on 10 Apr 2012 at 8:38

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This is essentially the same as the "a linebreak should be converted to a <br>" 
complaint, one of the bigger controversies as far as Markdown goes; both sides 
of this have their fans.

In Markdown (as specified in 
http://daringfireball.net/projects/markdown/syntax, and as used here), putting 
the three words on seperate lines or putting them on a single line mean 
precisely the same thing. As such, it makes sense for the editor to handle this 
in the same way.

Original comment by b...@stackoverflow.com on 12 Sep 2012 at 9:53