KnpMarkdownBundle/Parser/Preset/Medium.php
2021-11-30 07:32:02 -05:00

37 lines
945 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 array $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]
'images' => true,
'html_block' => false,
'block_quote' => false,
'code_block' => true,
'auto_link' => true,
'auto_mailto' => false,
'entities' => false,
'no_html' => false,
);
}