27 lines
581 B
PHP
27 lines
581 B
PHP
|
<?php
|
||
|
|
||
|
namespace League\HTMLToMarkdown;
|
||
|
|
||
|
/**
|
||
|
* Interface for an HTML-to-Markdown converter.
|
||
|
*
|
||
|
* @author Colin O'Dell <colinodell@gmail.com>
|
||
|
*
|
||
|
* @link https://github.com/thephpleague/html-to-markdown/ Latest version on GitHub.
|
||
|
*
|
||
|
* @license http://www.opensource.org/licenses/mit-license.php MIT
|
||
|
*/
|
||
|
interface HtmlConverterInterface
|
||
|
{
|
||
|
/**
|
||
|
* Convert the given $html to Markdown
|
||
|
*
|
||
|
* @param string $html
|
||
|
*
|
||
|
* @throws \InvalidArgumentException
|
||
|
*
|
||
|
* @return string The Markdown version of the html
|
||
|
*/
|
||
|
public function convert($html);
|
||
|
}
|