Skip to content

Commit

Permalink
Added extensible converter
Browse files Browse the repository at this point in the history
  • Loading branch information
hason committed Jun 3, 2015
1 parent 2205386 commit a7e5361
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/ExtensibleCommonMarkConverter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

/*
* This file is part of the league/commonmark package.
*
* (c) Colin O'Dell <colinodell@gmail.com>
*
* Original code based on the CommonMark JS reference parser (http://bitly.com/commonmark-js)
* - (c) John MacFarlane
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace League\CommonMark;

/**
* Converts CommonMark-compatible Markdown to HTML.
*/
class ExtensibleCommonMarkConverter extends CommonMarkConverter
{
/**
* Create a new commonmark converter instance.
*
* @param DocParser $docParser
* @param HtmlRendererInterface $htmlRenderer
*/
public function __construct(DocParser $docParser, HtmlRendererInterface $htmlRenderer)
{
$this->docParser = $docParser;
$this->htmlRenderer = $htmlRenderer;
}
}

0 comments on commit a7e5361

Please sign in to comment.