public function serialize(ShortcodeInterface $shortcode)
 {
     $open = $this->syntax->getOpeningTag();
     $close = $this->syntax->getClosingTag();
     $marker = $this->syntax->getClosingTagMarker();
     $parameters = $this->serializeParameters($shortcode->getParameters());
     $return = $open . $shortcode->getName() . $parameters;
     return null === $shortcode->getContent() ? $return . ($shortcode instanceof ParsedShortcodeInterface && $shortcode->getMarkerOffset() ? ' ' . $marker : '') . $close : $return . $close . $shortcode->getContent() . $open . $marker . $shortcode->getName() . $close;
 }