2010-05-12 01:25:34 +02:00
|
|
|
<?php
|
|
|
|
|
2011-07-03 11:28:55 +02:00
|
|
|
namespace Knp\Bundle\MarkdownBundle\Parser\Preset;
|
2010-05-12 01:25:34 +02:00
|
|
|
|
2011-07-03 11:28:55 +02:00
|
|
|
use Knp\Bundle\MarkdownBundle\Parser\MarkdownParser;
|
2010-05-12 01:25:34 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Medium featured Markdown Parser
|
|
|
|
*/
|
|
|
|
class Medium extends MarkdownParser
|
|
|
|
{
|
|
|
|
|
|
|
|
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,
|
2012-10-10 18:01:45 +02:00
|
|
|
'entities' => false,
|
|
|
|
'no_html' => false,
|
2010-05-12 01:25:34 +02:00
|
|
|
);
|
|
|
|
|
2011-02-04 15:28:05 +01:00
|
|
|
}
|