mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-03 03:42:38 +02:00
Assert table header does not contain new lines
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user