You are here

public function Markdown::__construct in Express 8

* Constructor function. Initialize appropriate member variables. *

Return value

void

1 call to Markdown::__construct()
MarkdownExtra::__construct in vendor/michelf/php-markdown/Michelf/MarkdownExtra.php
* Constructor function. Initialize the parser object. *
1 method overrides Markdown::__construct()
MarkdownExtra::__construct in vendor/michelf/php-markdown/Michelf/MarkdownExtra.php
* Constructor function. Initialize the parser object. *

File

vendor/michelf/php-markdown/Michelf/Markdown.php, line 155

Class

Markdown
Markdown Parser Class

Namespace

Michelf

Code

public function __construct() {
  $this
    ->_initDetab();
  $this
    ->prepareItalicsAndBold();
  $this->nested_brackets_re = str_repeat('(?>[^\\[\\]]+|\\[', $this->nested_brackets_depth) . str_repeat('\\])*', $this->nested_brackets_depth);
  $this->nested_url_parenthesis_re = str_repeat('(?>[^()\\s]+|\\(', $this->nested_url_parenthesis_depth) . str_repeat('(?>\\)))*', $this->nested_url_parenthesis_depth);
  $this->escape_chars_re = '[' . preg_quote($this->escape_chars) . ']';

  // Sort document, block, and span gamut in ascendent priority order.
  asort($this->document_gamut);
  asort($this->block_gamut);
  asort($this->span_gamut);
}