Fix priority list bugs

Fixes newline matching and operating over multiple list blocks.