Files
apimacro/vendor/league/commonmark/src/ConverterInterface.php

31 lines
787 B
PHP
Raw Normal View History

2024-05-07 12:17:25 +02:00
<?php
2024-08-13 13:44:16 +00:00
declare(strict_types=1);
2024-05-07 12:17:25 +02:00
/*
* This file is part of the league/commonmark package.
*
* (c) Colin O'Dell <colinodell@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace League\CommonMark;
2024-08-13 13:44:16 +00:00
use League\CommonMark\Exception\CommonMarkException;
use League\CommonMark\Output\RenderedContentInterface;
use League\Config\Exception\ConfigurationExceptionInterface;
2024-05-07 12:17:25 +02:00
/**
2024-08-13 13:44:16 +00:00
* Interface for a service which converts content from one format (like Markdown) to another (like HTML).
2024-05-07 12:17:25 +02:00
*/
2024-08-13 13:44:16 +00:00
interface ConverterInterface
2024-05-07 12:17:25 +02:00
{
2024-08-13 13:44:16 +00:00
/**
* @throws CommonMarkException
* @throws ConfigurationExceptionInterface
*/
public function convert(string $input): RenderedContentInterface;
2024-05-07 12:17:25 +02:00
}