KnpMarkdownBundle/Parser/Preset/Medium.php
Joseph Bielawski 3c541b580b Removed hard dependency on MarkdownParser code, now uses dflydev/markdown library
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)`
2012-10-15 17:28:35 +02:00

36 lines
913 B
PHP

<?php
namespace Knp\Bundle\MarkdownBundle\Parser\Preset;
use Knp\Bundle\MarkdownBundle\Parser\MarkdownParser;
/**
* Medium featured Markdown Parser
*/
class Medium extends MarkdownParser
{
/**
* @var array Enabled features
*/
protected $features = array(
'header' => true,
'list' => true,
'horizontal_rule' => true,
'table' => false,
'foot_note' => true,
'fenced_code_block' => true,
'abbreviation' => true,
'definition_list' => false,
'inline_link' => true, // [link text](url "optional title")
'reference_link' => true, // [link text] [id]
'shortcut_link' => true, // [link text]
'html_block' => false,
'block_quote' => false,
'code_block' => true,
'auto_link' => true,
'auto_mailto' => false,
'entities' => false,
'no_html' => false,
);
}