Ejemplo n.º 1
0
 public function render(Node $node, $text)
 {
     $html = '<' . $node->getType() . $this->arrayToHtmlAttributes($node->getAttributes()) . '>';
     $html .= $node->getText();
     $html .= '</' . $node->getType() . '>';
     return $html;
 }
Ejemplo n.º 2
0
 public function render(Node $node, $text)
 {
     $href = $node->getAttribute('href');
     $text = $node->getText();
     return "[{$text}]({$href})";
 }
Ejemplo n.º 3
0
 public function render(Node $node, $text)
 {
     return $this->cleanInitialWhitespace($node->getText());
 }