You are here

function Markdown_Parser::setup in Markdown 6

Same name and namespace in other branches
  1. 5 markdown.php \Markdown_Parser::setup()
2 calls to Markdown_Parser::setup()
MarkdownExtra_Parser::setup in ./markdown.php
Markdown_Parser::transform in ./markdown.php
1 method overrides Markdown_Parser::setup()
MarkdownExtra_Parser::setup in ./markdown.php

File

./markdown.php, line 288

Class

Markdown_Parser

Code

function setup() {

  #

  # Called before the transformation process starts to setup parser

  # states.

  #

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