Permalink
Browse files

Merge branch 'master' into extra

  • Loading branch information...
2 parents 2a10399 + f192337 commit 30351526031e4acb394c0c47a93ee93e311e3d24 @michelf committed Apr 21, 2008
Showing with 7 additions and 2 deletions.
  1. +7 −2 markdown.php
View
@@ -220,6 +220,10 @@ class Markdown_Parser {
# Change to `true` to disallow markup or entities.
var $no_markup = false;
var $no_entities = false;
+
+ # Predefined urls and titles for reference links and images.
+ var $predef_urls = array();
+ var $predef_titles = array();
function Markdown_Parser() {
@@ -251,14 +255,15 @@ function Markdown_Parser() {
# Status flag to avoid invalid nesting.
var $in_anchor = false;
+
function setup() {
#
# Called before the transformation process starts to setup parser
# states.
#
# Clear global hashes.
- $this->urls = array();
- $this->titles = array();
+ $this->urls = $predef_urls;
+ $this->titles = $predef_titles;
$this->html_hashes = array();
$in_anchor = false;

0 comments on commit 3035152

Please sign in to comment.