26 lines
477 B
PHP
26 lines
477 B
PHP
<?php
|
|
|
|
namespace League\HTMLToMarkdown\Converter;
|
|
|
|
use League\HTMLToMarkdown\ElementInterface;
|
|
|
|
class ListBlockConverter implements ConverterInterface
|
|
{
|
|
/**
|
|
* @param ElementInterface $element
|
|
*
|
|
* @return string
|
|
*/
|
|
public function convert(ElementInterface $element)
|
|
{
|
|
return $element->getValue() . "\n";
|
|
}
|
|
|
|
/**
|
|
* @return string[]
|
|
*/
|
|
public function getSupportedTags()
|
|
{
|
|
return array('ol', 'ul');
|
|
}
|
|
}
|