textile / php-textile

Textile markup language parser for PHP
https://textile-lang.com
Other
216 stars 44 forks source link

Incorrect markup generated when a divider tag is on its own line within a paragraph #194

Closed gocom closed 5 years ago

gocom commented 5 years ago

Prerequisites

Problematic Textile markup

First _line_ of paragraph.
<br /><br />
Third *line* of paragraph.

Expected output

<p>First <em>line</em> of paragraph.<br />
<br />
<br />
Third <strong>line</strong> of paragraph.</p>

Actual output

First _line_ of paragraph.
<br /><br />
Third *line* of paragraph.

Used PHP code

Test suite fixture.

Additional information

PHP-Textile version: 3.7.2 PHP version: 7.3.2