MarkdownConverterInterface.php 791 B

123456789101112131415161718192021222324252627282930313233
  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\Output\RenderedContentInterface;
  13. /**
  14. * Interface for a service which converts Markdown to HTML.
  15. *
  16. * @deprecated since 2.2; use {@link ConverterInterface} instead
  17. */
  18. interface MarkdownConverterInterface
  19. {
  20. /**
  21. * Converts Markdown to HTML.
  22. *
  23. * @deprecated since 2.2; use {@link ConverterInterface::convert()} instead
  24. *
  25. * @throws \RuntimeException
  26. */
  27. public function convertToHtml(string $markdown): RenderedContentInterface;
  28. }