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:
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