MarkdownConverterInterface.php 846 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare(strict_types=1);
  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. namespace League\CommonMark;
  12. use League\CommonMark\Exception\CommonMarkException;
  13. use League\CommonMark\Output\RenderedContentInterface;
  14. /**
  15. * Interface for a service which converts Markdown to HTML.
  16. *
  17. * @deprecated since 2.2; use {@link ConverterInterface} instead
  18. */
  19. interface MarkdownConverterInterface
  20. {
  21. /**
  22. * Converts Markdown to HTML.
  23. *
  24. * @deprecated since 2.2; use {@link ConverterInterface::convert()} instead
  25. *
  26. * @throws CommonMarkException
  27. */
  28. public function convertToHtml(string $markdown): RenderedContentInterface;
  29. }