1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Assert table header does not contain new lines

This commit is contained in:
Aidan Woods 2018-04-09 16:37:32 +01:00
parent c440c91af5
commit cb33daf0e6
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -883,6 +883,7 @@ class Parsedown
strpos($Block['element']['handler']['argument'], '|') === false
and strpos($Line['text'], '|') === false
and strpos($Line['text'], ':') === false
or strpos($Block['element']['handler']['argument'], "\n") !== false
) {
return;
}