parsedown-extra icon indicating copy to clipboard operation
parsedown-extra copied to clipboard

Exception

Open mindplay-dk opened this issue 8 years ago • 3 comments

I discovered an edge case that generates an exception.

#0 C:\workspace\test\php-markdown-test\vendor\erusev\parsedown-extra\ParsedownExtra.php(473): {closure}(8, 'Trying to get p...', 'C:\\workspace\\te...', 473, Array)
#1 C:\workspace\test\php-markdown-test\vendor\erusev\parsedown-extra\ParsedownExtra.php(228): ParsedownExtra->processTag('<>')
#2 C:\workspace\test\php-markdown-test\vendor\erusev\parsedown\Parsedown.php(258): ParsedownExtra->blockMarkupComplete(Array)
#3 C:\workspace\test\php-markdown-test\vendor\erusev\parsedown\Parsedown.php(39): Parsedown->lines(Array)
#4 C:\workspace\test\php-markdown-test\vendor\erusev\parsedown-extra\ParsedownExtra.php(46): Parsedown->text('<>\r\n')

mindplay-dk avatar Aug 01 '15 20:08 mindplay-dk

Does it reproduce at the website: http://parsedown.org/extra/

erusev avatar Aug 01 '15 20:08 erusev

@erusev if you enter <> followed by a new line, this also happens on the website:

 Fatal error: Call to a member function getAttribute() on a non-object in /var/www/parsedown.org/shared/vendor/erusev/parsedown-extra/ParsedownExtra.php on line 477

cebe avatar Aug 01 '15 21:08 cebe

The same happens for <body>a</body>

janschoenherr avatar May 02 '18 09:05 janschoenherr