| 1 | <?php |
||
| 7 | final class ImageConverter implements Converter |
||
| 8 | { |
||
| 9 | use HtmlToMarkdown; |
||
| 10 | |||
| 11 | 1 | public function toJson(\DOMElement $node) |
|
| 12 | { |
||
| 13 | 1 | return new SirTrevorBlock( |
|
| 14 | 1 | 'image', |
|
| 15 | array( |
||
| 16 | 1 | 'file' => array('url' => $node->getAttribute('src')), |
|
| 17 | ) |
||
| 18 | 1 | ); |
|
| 19 | } |
||
| 20 | |||
| 21 | 1 | public function matches(\DomElement $node) |
|
| 25 | } |
||
| 26 |