Permalink
Browse files

Added parser property for predefined URLs and titles for reference li…

…nks and images.
  • Loading branch information...
1 parent 50b5ff3 commit f19233711e57b5bad17fe4a056e30f8fe9600c43 @michelf committed Apr 21, 2008
Showing with 6 additions and 2 deletions.
  1. +6 −2 markdown.php
View
@@ -208,6 +208,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() {
@@ -246,8 +250,8 @@ function setup() {
# 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 f192337

Please sign in to comment.