1<?php 2 3/* 4 * This file is part of the league/commonmark package. 5 * 6 * (c) Colin O'Dell <colinodell@gmail.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12namespace League\CommonMark; 13 14/** 15 * Interface for a service which converts Markdown to HTML. 16 */ 17interface MarkdownConverterInterface 18{ 19 /** 20 * Converts Markdown to HTML. 21 * 22 * @param string $markdown 23 * 24 * @throws \RuntimeException 25 * 26 * @return string HTML 27 * 28 * @api 29 */ 30 public function convertToHtml(string $markdown): string; 31} 32