_MarkdownExtra_TmpImpl::__construct PHP Method

__construct() public method

### Parser Implementation ###
public __construct ( )
    public function __construct()
    {
        #
        # Constructor function. Initialize the parser object.
        #
        # Add extra escapable characters before parent constructor
        # initialize the table.
        $this->escape_chars .= ':|';
        # Insert extra document, block, and span transformations.
        # Parent constructor will do the sorting.
        $this->document_gamut += array("doFencedCodeBlocks" => 5, "stripFootnotes" => 15, "stripAbbreviations" => 25, "appendFootnotes" => 50);
        $this->block_gamut += array("doFencedCodeBlocks" => 5, "doTables" => 15, "doDefLists" => 45);
        $this->span_gamut += array("doFootnotes" => 5, "doAbbreviations" => 70);
        parent::__construct();
    }

Usage Example

コード例 #1
0
ファイル: markdown_extra.php プロジェクト: xiaodin1/myqee
 function __construct()
 {
     $this->block_gamut += array('doReplaceClass' => 1, 'doReplaceClassListTag' => 1, 'autoChangeUrlLink' => 1, 'autoChangeUrlImage' => 1, 'autoCode' => 49, 'doHeaders2' => 11);
     parent::__construct();
 }