HTML tags instead of in order to * match front-end markdown-it rendering. */ class CustomStrikethroughRenderer implements NodeRendererInterface { public function render(Node $node, ChildNodeRendererInterface $childRenderer) { Strikethrough::assertInstanceOf($node); return new HtmlElement('s', $node->data->get('attributes'), $childRenderer->renderNodes($node->children())); } }