ttscoff/MarkdownEditing — pull request #13 by Westacular (2012-08-31 04:14:42+00:00)
Title: Add automatic list continuation

If the current line is a list item, hitting enter prefixes the next
line with the same list prefix. (e.g., things like " - ", "* ", " 1. " get repeated on the following line.)

Hitting enter following a line that contains _only_ a list prefix and nothing
else will delete the prefix, and move to a new, empty line.

Note: The regex strips out the leading indentation because auto-indent, if enabled, will automatically insert that. Leaving it in in the regex leads to doubly-indented lines.