| 1 | <?php |
||
| 5 | abstract class Converter |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param \DomElement $node |
||
| 9 | * @return array |
||
| 10 | */ |
||
| 11 | abstract public function toJson(\DOMElement $node); |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param \DomElement $node |
||
| 15 | * @return boolean |
||
| 16 | */ |
||
| 17 | abstract public function matches(\DOMElement $node); |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $html |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 1 | protected function htmlToMarkdown($html) |
|
| 36 | } |
||
| 37 |