serializer->linkHandler( $node ); return $node->nextSibling; } /** @inheritDoc */ public function before( DOMElement $node, DOMNode $otherNode, SerializerState $state ): array { // sol-transparent link nodes are the only thing on their line. // But, don't force separators wrt to its parent (body, p, list, td, etc.) if ( $otherNode !== $node->parentNode && WTUtils::isSolTransparentLink( $node ) && !WTUtils::isRedirectLink( $node ) && !WTUtils::isEncapsulationWrapper( $node ) ) { return [ 'min' => 1 ]; } else { return []; } } /** @inheritDoc */ public function after( DOMElement $node, DOMNode $otherNode, SerializerState $state ): array { // sol-transparent link nodes are the only thing on their line // But, don't force separators wrt to its parent (body, p, list, td, etc.) if ( $otherNode !== $node->parentNode && WTUtils::isSolTransparentLink( $node ) && !WTUtils::isRedirectLink( $node ) && !WTUtils::isEncapsulationWrapper( $node ) ) { return [ 'min' => 1 ]; } else { return []; } } }