1<?php
2
3declare(strict_types=1);
4
5/*
6 * This file is part of the league/commonmark package.
7 *
8 * (c) Colin O'Dell <colinodell@gmail.com>
9 *
10 * For the full copyright and license information, please view the LICENSE
11 * file that was distributed with this source code.
12 */
13
14namespace League\CommonMark;
15
16use League\CommonMark\Exception\CommonMarkException;
17use League\CommonMark\Output\RenderedContentInterface;
18use League\Config\Exception\ConfigurationExceptionInterface;
19
20/**
21 * Interface for a service which converts content from one format (like Markdown) to another (like HTML).
22 */
23interface ConverterInterface
24{
25    /**
26     * @throws CommonMarkException
27     * @throws ConfigurationExceptionInterface
28     */
29    public function convert(string $input): RenderedContentInterface;
30}
31