@ -362,7 +362,7 @@ class Parser {
if ($this->current()->type === TokenType::EOF)
break;
// then we exce pt an asterisk or a number followed by a period
// then we expec t an asterisk or a number followed by a period
if ($type === ListType::UNORDERED) {
$asterisk = $this->consume();
self::Assert($asterisk->type === TokenType::ASTERISK, $asterisk, "expected asterisk, got ".$asterisk->type->name);
@ -568,6 +568,8 @@ class Parser {
$head = $this->parseTableHead();
$props = $this->parseTableAlignment();
self::Assert(count($props) === count($head->childNodes), $this->current(), "the number of alignment columns does not match the number of header columns");
$i = 0;
foreach($head->childNodes as $col) {
$col->setAttribute("style", "text-align: ".$props[$i]);