mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-04 14:43:17 +02:00
3c541b580b
Refactored way how parsers are initialized, and allow to select parser while rendering Interface `MarkdownParserInterface` method name was changed from `#transform($text)` to `#transformMarkdown($text)`
22 lines
427 B
PHP
22 lines
427 B
PHP
<?php
|
|
|
|
namespace Knp\Bundle\MarkdownBundle\Parser\Preset;
|
|
|
|
use Knp\Bundle\MarkdownBundle\Parser\MarkdownParser;
|
|
|
|
/**
|
|
* Minimally featured Markdown Parser
|
|
*/
|
|
class Min extends MarkdownParser
|
|
{
|
|
public function __construct(array $features = array())
|
|
{
|
|
foreach ($this->features as $name => $enabled) {
|
|
$this->features[$name] = false;
|
|
}
|
|
|
|
return parent::__construct($features);
|
|
}
|
|
}
|
|
|