Немного изменил концепцию.
Using regex now. It passes the test.
Getting back to paragraphs.
Regex is satan's work.