madskristensen/MiniBlog — pull request #148 by programcsharp (2014-11-20 21:34:27+00:00)
Title: Actually fix xhtml parse issue

Turns out the problem was actually that the html was multiline. Regardless of passing the m option, javascript doesn't properly support a single line regex.

Easy fix is to match \s\S (whitespace and not whitespace) rather than . so the match can break across lines.