From 3ea15a3f51c1f8b66cab541935724484ca01ff61 Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Mon, 28 Feb 2022 14:45:52 +0100 Subject: [PATCH] fixed parsing of tables --- src/Parser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = "";