1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace League\HTMLToMarkdown\Converter; |
||
6 | |||
7 | use League\HTMLToMarkdown\ElementInterface; |
||
8 | |||
9 | class HorizontalRuleConverter implements ConverterInterface |
||
10 | { |
||
11 | public function convert(ElementInterface $element): string |
||
12 | { |
||
13 | return "---\n\n"; |
||
14 | 3 | } |
|
15 | |||
16 | 3 | /** |
|
17 | * @return string[] |
||
18 | */ |
||
19 | public function getSupportedTags(): array |
||
20 | { |
||
21 | return ['hr']; |
||
22 | 99 | } |
|
23 | } |
||
24 |