for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the league/markua package.
*
* (c) Davey Shafik <[email protected]>
* (c) Dan Hunsaker <[email protected]>
* Original code based on the CommonMark JS reference parser (http://bitly.com/commonmarkjs)
* - (c) John MacFarlane
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Danhunsaker\Markua;
use League\CommonMark\CommonMarkConverter;
use League\CommonMark\DocParser;
use League\CommonMark\Environment;
use League\CommonMark\HtmlRenderer;
use Danhunsaker\Markua\Extension\MarkuaExtension;
/**
* Converts Markua-compatible Markdown to HTML.
class MarkuaConverter extends CommonMarkConverter
{
* {@inheritdoc}
public function __construct(array $config = [], Environment $environment = null)
if ($environment === null) {
$environment = Environment::createCommonMarkEnvironment();
}
$environment->addExtension(new MarkuaExtension());
parent::__construct($config, $environment);