We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae002a commit 07d561fCopy full SHA for 07d561f
app/EmbedProcessor.php
@@ -41,12 +41,13 @@ public function __invoke(DocumentParsedEvent $event): void
41
{
42
$document = $event->getDocument();
43
$embeds = [];
44
- info('Processing embeds in document');
45
- info('Total nodes in document: '.count(iterator_to_array(new NodeIterator($document))));
+
46
foreach (new NodeIterator($document) as $node) {
+ info('Processing node of type: ' . get_class($node));
47
if (! ($node instanceof Embed)) {
48
continue;
49
}
50
+ info('Node is an embed, processing...');
51
52
if ($node->parent() !== $document) {
53
$replacement = new Paragraph;
0 commit comments