Allow blockquotes to be applied upon selections containing multiple lines

This probably fixes a few other bugs too.