diff --git a/src/Parser.php b/src/Parser.php index 1af84f7..f7da5c7 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -332,7 +332,6 @@ class Parser { $elm->appendChild($col); $i++; } - $this->consume(); // EOL return $elm; } @@ -344,6 +343,8 @@ class Parser { private function parseTableAlignment() : array { $props = []; + $this->consume(); // EOL + while ($this->current()->type !== TokenType::EOL && $this->current()->type !== TokenType::EOF) { $pipe = $this->consume(); $buffer = "";