Code52/DownmarkerWPF — pull request #286 by belfryimages (2012-05-26 14:01:39+00:00)
Title: Issue267 automatically continue lists

This adds support for automatically continuing ordered and unordered lists.

Pressing enter at the end of a list item inserts a new list item markup at the start of the next line (ordered list index is incremented, but it doesn't try to keep inserted items accurate, and markdown will ignore the indices anyway).

Pressing enter at the end of a list item with no non-whitespace content clears the line before inserting the newline.

Same behaviour for blockquotes (raquo).

I also added in indent support for ordered and unordered lists. Pressing tab at the end of the 'bullet' (but before any content) inserts a tab at the start of the line instead. AvalonEdit's built-in shift-tab behaviour is correct as far as unindenting lists is concerned so I didn't need to add support for that.