emitChunk( str_repeat( '-', 4 + ( DOMDataUtils::getDataParsoid( $node )->extra_dashes ?? 0 ) ), $node ); return $node->nextSibling; } /** @inheritDoc */ public function before( Element $node, Node $otherNode, SerializerState $state ): array { return [ 'min' => 1, 'max' => 2 ]; } // XXX: Add a newline by default if followed by new/modified content /** @inheritDoc */ public function after( Element $node, Node $otherNode, SerializerState $state ): array { return [ 'min' => 0, 'max' => 2 ]; } }