This commit is contained in:
Paolo A
2024-08-13 13:44:16 +00:00
parent 1bbb23088d
commit e796d76612
4001 changed files with 30101 additions and 40075 deletions

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
/*
* This file is part of the league/commonmark package.
*
@@ -11,21 +13,22 @@
namespace League\CommonMark;
use League\CommonMark\Exception\CommonMarkException;
use League\CommonMark\Output\RenderedContentInterface;
/**
* Interface for a service which converts Markdown to HTML.
*
* @deprecated since 2.2; use {@link ConverterInterface} instead
*/
interface MarkdownConverterInterface
{
/**
* Converts Markdown to HTML.
*
* @param string $markdown
* @deprecated since 2.2; use {@link ConverterInterface::convert()} instead
*
* @throws \RuntimeException
*
* @return string HTML
*
* @api
* @throws CommonMarkException
*/
public function convertToHtml(string $markdown): string;
public function convertToHtml(string $markdown): RenderedContentInterface;
}