예제 #1
0
 function __construct(&$debug = '')
 {
     // check for logging object with mark() method
     $this->debug = method_exists($debug, 'mark') ? $debug : $this;
     $this->debug->mark();
     # 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($debug);
 }
예제 #2
0
 function __construct(&$debug = false)
 {
     if (!empty($this->debug->enabled)) {
         $this->debug->mark();
     }
     # 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($debug);
 }