fixed parsing of tables

feature/tests
Michael Ochmann 3 years ago
parent 35546e556a
commit 3ea15a3f51
  1. 3
      src/Parser.php

@ -332,7 +332,6 @@ class Parser {
$elm->appendChild($col); $elm->appendChild($col);
$i++; $i++;
} }
$this->consume(); // EOL
return $elm; return $elm;
} }
@ -344,6 +343,8 @@ class Parser {
private function parseTableAlignment() : array { private function parseTableAlignment() : array {
$props = []; $props = [];
$this->consume(); // EOL
while ($this->current()->type !== TokenType::EOL && $this->current()->type !== TokenType::EOF) { while ($this->current()->type !== TokenType::EOL && $this->current()->type !== TokenType::EOF) {
$pipe = $this->consume(); $pipe = $this->consume();
$buffer = ""; $buffer = "";

Loading…
Cancel
Save