From 496034258a1731ec906f449da871b25b96eb0aca Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Sun, 21 Aug 2022 12:18:18 +0200 Subject: [PATCH] fixed annoations breaking headings --- src/Parser.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Parser.php b/src/Parser.php index 9855602..11ab17e 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -310,6 +310,7 @@ class Parser { // then we parse the node content $elm = $this->document->createElement("li"); foreach ($this->parseText() as $node) + if ($node instanceof DOMNode) $elm->appendChild($node); // now we check, if the level of the next line is higher than the current level.