Skip to content

Commit 07d561f

Browse files
committed
wip
1 parent eae002a commit 07d561f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/EmbedProcessor.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ public function __invoke(DocumentParsedEvent $event): void
4141
{
4242
$document = $event->getDocument();
4343
$embeds = [];
44-
info('Processing embeds in document');
45-
info('Total nodes in document: '.count(iterator_to_array(new NodeIterator($document))));
44+
4645
foreach (new NodeIterator($document) as $node) {
46+
info('Processing node of type: ' . get_class($node));
4747
if (! ($node instanceof Embed)) {
4848
continue;
4949
}
50+
info('Node is an embed, processing...');
5051

5152
if ($node->parent() !== $document) {
5253
$replacement = new Paragraph;

0 commit comments

Comments
 (0)