MarkdownParserInterface.php 547 B

12345678910111213141516171819202122232425
  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\Parser;
  12. use League\CommonMark\Exception\CommonMarkException;
  13. use League\CommonMark\Node\Block\Document;
  14. interface MarkdownParserInterface
  15. {
  16. /**
  17. * @throws CommonMarkException
  18. */
  19. public function parse(string $input): Document;
  20. }