EventHandler::getInstance()->fireAction($this, 'beforeEmbeddedProcess');
+ $this->convertPlainLinks();
+
// extract embedded content
$this->processEmbeddedContent();
- $this->convertPlainLinks();
EventHandler::getInstance()->fireAction($this, 'afterProcess');
}
}
}
- if (!$mayContainOtherContent || $linebreaks > 1) {
+ if (!$mayContainOtherContent || $linebreaks <= 1) {
$this->plainLinks[] = $plainLink->setIsStandalone($parent);
continue;
}
$this->markAsTainted();
if ($this->objectID === 0) {
- throw new \UnexpectedValueException('The objectID must not be null.');
+ throw new \UnexpectedValueException('The objectID must not be zero.');
}
$metacodeElement = $this->link->ownerDocument->createElement('woltlab-metacode');