| 1 |
<?php |
| 2 |
|
| 3 |
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded |
| 4 |
namespace Yoast\WP\SEO\Llms_Txt\Domain\Markdown\Items; |
| 5 |
|
| 6 |
use Yoast\WP\SEO\Llms_Txt\Application\Markdown_Escaper; |
| 7 |
|
| 8 |
/** |
| 9 |
* Represents a markdown item. |
| 10 |
*/ |
| 11 |
interface Item_Interface { |
| 12 |
|
| 13 |
/** |
| 14 |
* Renders the item. |
| 15 |
* |
| 16 |
* @return string |
| 17 |
*/ |
| 18 |
public function render(): string; |
| 19 |
|
| 20 |
/** |
| 21 |
* Escapes the markdown content. |
| 22 |
* |
| 23 |
* @param Markdown_Escaper $markdown_escaper The markdown escaper. |
| 24 |
* |
| 25 |
* @return void |
| 26 |
*/ |
| 27 |
public function escape_markdown( Markdown_Escaper $markdown_escaper ): void; |
| 28 |
} |
| 29 |
|