Permalink
Browse files

Clarified what variables in the parser class are meant to be configur…

…able and which are not.
  • Loading branch information...
1 parent a09e65c commit d1c16bef1ad059ab81f853cf3ebd6095880a2a2a @michelf committed Oct 4, 2012
Showing with 16 additions and 11 deletions.
  1. +16 −11 markdown.php
View
@@ -190,17 +190,7 @@ function blockLite($text) { return $text; }
class Markdown_Parser {
- # Regex to match balanced [brackets].
- # Needed to insert a maximum bracked depth while converting to PHP.
- var $nested_brackets_depth = 6;
- var $nested_brackets_re;
-
- var $nested_url_parenthesis_depth = 4;
- var $nested_url_parenthesis_re;
-
- # Table of hash values for escaped characters:
- var $escape_chars = '\`*_{}[]()>#+-.!';
- var $escape_chars_re;
+ ### Configuration Variables ###
# Change to ">" for HTML output.
var $empty_element_suffix = MARKDOWN_EMPTY_ELEMENT_SUFFIX;
@@ -215,6 +205,21 @@ class Markdown_Parser {
var $predef_titles = array();
+ ### Parser Implementation ###
+
+ # Regex to match balanced [brackets].
+ # Needed to insert a maximum bracked depth while converting to PHP.
+ var $nested_brackets_depth = 6;
+ var $nested_brackets_re;
+
+ var $nested_url_parenthesis_depth = 4;
+ var $nested_url_parenthesis_re;
+
+ # Table of hash values for escaped characters:
+ var $escape_chars = '\`*_{}[]()>#+-.!';
+ var $escape_chars_re;
+
+
function Markdown_Parser() {
#
# Constructor function. Initialize appropriate member variables.

0 comments on commit d1c16be

Please sign in to comment.