aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/league/html-to-markdown/src/Converter/HorizontalRuleConverter.php
blob: a2b1ac14a85f86a1dfc5e0d33b1b85ddc018bb69 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

     

                        





                                                           
                                                              
     
                         




                       
                                             
     
                      

     
<?php

declare(strict_types=1);

namespace League\HTMLToMarkdown\Converter;

use League\HTMLToMarkdown\ElementInterface;

class HorizontalRuleConverter implements ConverterInterface
{
    public function convert(ElementInterface $element): string
    {
        return "---\n\n";
    }

    /**
     * @return string[]
     */
    public function getSupportedTags(): array
    {
        return ['hr'];
    }
}