Handle code blocks, nested lists, and non-blank 2nd line.

These are changes needed to convert my project's wiki from GoogleCode to GitHub which might be useful to others.