|
|
@ -310,6 +310,7 @@ class Parser { |
|
|
|
// then we parse the node content |
|
|
|
// then we parse the node content |
|
|
|
$elm = $this->document->createElement("li"); |
|
|
|
$elm = $this->document->createElement("li"); |
|
|
|
foreach ($this->parseText() as $node) |
|
|
|
foreach ($this->parseText() as $node) |
|
|
|
|
|
|
|
if ($node instanceof DOMNode) |
|
|
|
$elm->appendChild($node); |
|
|
|
$elm->appendChild($node); |
|
|
|
|
|
|
|
|
|
|
|
// now we check, if the level of the next line is higher than the current level. |
|
|
|
// now we check, if the level of the next line is higher than the current level. |
|
|
|