cebe / markdown

A super fast, highly extensible markdown parser for PHP
http://markdown.cebe.cc/
MIT License
997 stars 141 forks source link

Table without body at the end of markdown not detected #179

Open buddh4 opened 3 years ago

buddh4 commented 3 years ago

The following markdown table without body at the end of the markdown text is not detected and will be rendered as paragraph:

"| Tables | Are | Cool |\n| ------------- |:-------------:| -----:|"

while this one is detected (due to the following line):

| Tables | Are | Cool |\n| ------------- |:-------------:| -----:|\n\nasdf

Due to this check: https://github.com/cebe/markdown/blob/master/block/TableTrait.php#L23