Neamar/document-highlighter — pull request #9 by Neamar (2014-07-25 17:49:30+00:00)
Title: Bad html rendition

`

Hello

Trinity

` is currently text-mapped to `Hello p>Trinity `, then properly rebuilt.

However this can result in invalid highlighting.

```
Standard mode
with HTML content

Hello and welcome to the real world, Neo.

Trinity will be there soon.

[ { t: 0, h: 2, l: 3, c: false },
{ t: 42, h: 48, l: 4, c: true },
{ t: 72, h: 82, l: 4, c: true } ]
Hello and welcome to the real world, Neo. p>Trinity will be there soon.
✓ should highlight multiple paragraphs

Hello

Trinity

[ { t: 0, h: 2, l: 3, c: false },
{ t: 6, h: 12, l: 4, c: true },
{ t: 16, h: 26, l: 4, c: true } ]
Hello p>Trinity
```