1 | <?php |
||
7 | final class BaseConverter implements Converter |
||
8 | { |
||
9 | use HtmlToMarkdown; |
||
10 | |||
11 | public function toJson(\DOMElement $node) |
||
12 | { |
||
13 | $html = $node->ownerDocument->saveXML($node); |
||
14 | |||
15 | return new SirTrevorBlock( |
||
16 | 'text', |
||
17 | array('text' => ' ' . $this->htmlToMarkdown($html)) |
||
18 | ); |
||
19 | } |
||
20 | |||
21 | public function matches(\DomElement $node) |
||
25 | } |
||
26 |