You are here

protected function MarkdownExtra::setup in Markdown 7

* Setting up Extra-specific variables.

Overrides Markdown::setup

File

includes/MarkdownExtra.php, line 133

Class

MarkdownExtra
Markdown Extra Parser Class

Namespace

Michelf

Code

protected function setup() {
  parent::setup();
  $this->footnotes = array();
  $this->footnotes_ordered = array();
  $this->footnotes_ref_count = array();
  $this->footnotes_numbers = array();
  $this->abbr_desciptions = array();
  $this->abbr_word_re = '';
  $this->footnote_counter = 1;
  foreach ($this->predef_abbr as $abbr_word => $abbr_desc) {
    if ($this->abbr_word_re) {
      $this->abbr_word_re .= '|';
    }
    $this->abbr_word_re .= preg_quote($abbr_word);
    $this->abbr_desciptions[$abbr_word] = trim($abbr_desc);
  }
}