public function Markdown::__construct in Markdown 7
* Constructor function. Initialize appropriate member variables. *
Return value
void
1 call to Markdown::__construct()
- MarkdownExtra::__construct in includes/
MarkdownExtra.php - * Constructor function. Initialize the parser object. *
1 method overrides Markdown::__construct()
- MarkdownExtra::__construct in includes/
MarkdownExtra.php - * Constructor function. Initialize the parser object. *
File
- includes/
Markdown.php, line 155
Class
- Markdown
- Markdown Parser Class
Namespace
MichelfCode
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);
}