You are here

protected function Markdown::setup in Markdown 7

* Called before the transformation process starts to setup parser states. *

Return value

void

2 calls to Markdown::setup()
Markdown::transform in includes/Markdown.php
* Main function. Performs some preprocessing on the input text and pass * it through the document gamut. * * @api * *
MarkdownExtra::setup in includes/MarkdownExtra.php
* Setting up Extra-specific variables.
1 method overrides Markdown::setup()
MarkdownExtra::setup in includes/MarkdownExtra.php
* Setting up Extra-specific variables.

File

includes/Markdown.php, line 194

Class

Markdown
Markdown Parser Class

Namespace

Michelf

Code

protected function setup() {

  // Clear global hashes.
  $this->urls = $this->predef_urls;
  $this->titles = $this->predef_titles;
  $this->html_hashes = array();
  $this->in_anchor = false;
}