mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-19 19:41:29 +02:00
Assert table header does not contain new lines
This commit is contained in:
parent
c440c91af5
commit
cb33daf0e6
@ -883,6 +883,7 @@ class Parsedown
|
|||||||
strpos($Block['element']['handler']['argument'], '|') === false
|
strpos($Block['element']['handler']['argument'], '|') === false
|
||||||
and strpos($Line['text'], '|') === false
|
and strpos($Line['text'], '|') === false
|
||||||
and strpos($Line['text'], ':') === false
|
and strpos($Line['text'], ':') === false
|
||||||
|
or strpos($Block['element']['handler']['argument'], "\n") !== false
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user