|
|
@ -511,6 +511,10 @@ class Parser { |
|
|
|
while ($this->current()->type !== TokenType::EOF) { |
|
|
|
while ($this->current()->type !== TokenType::EOF) { |
|
|
|
switch($this->current()->type) { |
|
|
|
switch($this->current()->type) { |
|
|
|
case TokenType::ASTERISK: |
|
|
|
case TokenType::ASTERISK: |
|
|
|
|
|
|
|
if ($this->next()->type === TokenType::ASTERISK) { |
|
|
|
|
|
|
|
$this->buildParagraph($this->parseText(true)); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
$list = $this->parseList(); |
|
|
|
$list = $this->parseList(); |
|
|
|
$this->document->appendChild($list); |
|
|
|
$this->document->appendChild($list); |
|
|
|
break; |
|
|
|
break; |
|
|
|