src/Delta/Html/Compound.php
public function getAttributes(): array
    {
        if ($this->isLink === false) {
            return $this->attributes;
        } else {
            return array_merge(
                ['link' => $this->link],
                $this->attributes
            );
        }
    }
public function getAttributes(): array
    {
        if ($this->isLink === false) {
            return $this->attributes;
        } else {
            return array_merge(
                ['link' => $this->link],
                $this->attributes
            );
        }
    }
public function getAttributes ( ) : array { if ( $ this -> isLink === false ) { return $ this -> attributes ; } else { return array_merge ( [ 'link' => $ this -> link ] , $ this -> attributes ) ; } }
Override the method to include the link in the attributes array if
necessary as it will have be striped

@return array
Override the method to include the link in the attributes array if necessary as it will have be striped