ParsedownExtra.php 639 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @package Grav\Common\Markdown
  4. *
  5. * @copyright Copyright (C) 2015 - 2019 Trilby Media, LLC. All rights reserved.
  6. * @license MIT License; see LICENSE file for details.
  7. */
  8. namespace Grav\Common\Markdown;
  9. use Grav\Common\Page\Interfaces\PageInterface;
  10. class ParsedownExtra extends \ParsedownExtra
  11. {
  12. use ParsedownGravTrait;
  13. /**
  14. * ParsedownExtra constructor.
  15. *
  16. * @param PageInterface $page
  17. * @param array|null $defaults
  18. * @throws \Exception
  19. */
  20. public function __construct($page, $defaults)
  21. {
  22. parent::__construct();
  23. $this->init($page, $defaults);
  24. }
  25. }