Skip to content

Commit f7f528c

Browse files
author
Martin Brecht-Precht
committed
Fixed an issue with the HtmlTextProcessor handling HTML blocks.
1 parent 4fac35d commit f7f528c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Dispatcher/CommonmarkUtil/MarkdomEventBridge.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ private function transmitContainerBeginEvent(Node $node)
213213
$this->markdomHandler->onCommentBlock($comment);
214214
} else {
215215
$this->htmlProcessor->handleHtmlBlock($node, $this->markdomHandler);
216+
if(!is_null($node->next())){
217+
$this->markdomHandler->onNextBlock();
218+
}
216219
}
217220
break;
218221
case DocumentProcessor::BLOCK_NODE_IMAGE:

src/Dispatcher/HtmlProcessor/HtmlTextProcessor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function handleHtmlBlock(HtmlBlock $htmlBlock, HandlerInterface $markdomH
3333
$markdomHandler->onContentsEnd();
3434
$markdomHandler->onParagraphBlockEnd();
3535
$markdomHandler->onBlockEnd(BlockType::TYPE_PARAGRAPH);
36-
// FIXME: Why the hack does the CommonmarkDispatcher not add a blank line after this paragraph?!
3736
}
3837

3938
/**

0 commit comments

Comments
 (0)