Peta
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
Markdown_Parser Class Reference
Inheritance diagram for Markdown_Parser:
MarkdownExtra_Parser

Public Member Functions

 Markdown_Parser ()
 
 setup ()
 
 teardown ()
 
 transform ($text)
 
 stripLinkDefinitions ($text)
 
 _stripLinkDefinitions_callback ($matches)
 
 hashHTMLBlocks ($text)
 
 _hashHTMLBlocks_callback ($matches)
 
 hashPart ($text, $boundary= 'X')
 
 hashBlock ($text)
 
 runBlockGamut ($text)
 
 runBasicBlockGamut ($text)
 
 doHorizontalRules ($text)
 
 runSpanGamut ($text)
 
 doHardBreaks ($text)
 
 _doHardBreaks_callback ($matches)
 
 doAnchors ($text)
 
 _doAnchors_reference_callback ($matches)
 
 _doAnchors_inline_callback ($matches)
 
 doImages ($text)
 
 _doImages_reference_callback ($matches)
 
 _doImages_inline_callback ($matches)
 
 doHeaders ($text)
 
 _doHeaders_callback_setext ($matches)
 
 _doHeaders_callback_atx ($matches)
 
 doLists ($text)
 
 _doLists_callback ($matches)
 
 processListItems ($list_str, $marker_any_re)
 
 _processListItems_callback ($matches)
 
 doCodeBlocks ($text)
 
 _doCodeBlocks_callback ($matches)
 
 makeCodeSpan ($code)
 
 prepareItalicsAndBold ()
 
 doItalicsAndBold ($text)
 
 doBlockQuotes ($text)
 
 _doBlockQuotes_callback ($matches)
 
 _doBlockQuotes_callback2 ($matches)
 
 formParagraphs ($text)
 
 encodeAttribute ($text)
 
 encodeAmpsAndAngles ($text)
 
 doAutoLinks ($text)
 
 _doAutoLinks_url_callback ($matches)
 
 _doAutoLinks_email_callback ($matches)
 
 encodeEmailAddress ($addr)
 
 parseSpan ($str)
 
 handleSpanToken ($token, &$str)
 
 outdent ($text)
 
 detab ($text)
 
 _detab_callback ($matches)
 
 _initDetab ()
 
 unhash ($text)
 
 _unhash_callback ($matches)
 

Public Attributes

 $empty_element_suffix = MARKDOWN_EMPTY_ELEMENT_SUFFIX
 
 $tab_width = MARKDOWN_TAB_WIDTH
 
 $no_markup = false
 
 $no_entities = false
 
 $predef_urls = array()
 
 $predef_titles = array()
 
 $nested_brackets_depth = 6
 
 $nested_brackets_re
 
 $nested_url_parenthesis_depth = 4
 
 $nested_url_parenthesis_re
 
 $escape_chars = '\`*_{}[]()>#+-.!'
 
 $escape_chars_re
 
 $urls = array()
 
 $titles = array()
 
 $html_hashes = array()
 
 $in_anchor = false
 
 $document_gamut
 
 $block_gamut
 
 $span_gamut
 
 $list_level = 0
 
 $em_relist
 
 $strong_relist
 
 $em_strong_relist
 
 $em_strong_prepared_relist
 
 $utf8_strlen = 'mb_strlen'
 

Member Data Documentation

Markdown_Parser::$block_gamut
Initial value:
= array(
#
# These are all the transformations that form block-level
# tags like paragraphs, headers, and list items.
#
"doHeaders" => 10,
"doHorizontalRules" => 20,
"doLists" => 40,
"doCodeBlocks" => 50,
"doBlockQuotes" => 60,
)
Markdown_Parser::$document_gamut
Initial value:
= array(
# Strip link definitions, store in hashes.
"stripLinkDefinitions" => 20,
"runBasicBlockGamut" => 30,
)
Markdown_Parser::$em_relist
Initial value:
= array(
'' => '(?:(?<!\*)\*(?!\*)|(?<!_)_(?!_))(?=\S|$)(?![\.,:;]\s)',
'*' => '(?<=\S|^)(?<!\*)\*(?!\*)',
'_' => '(?<=\S|^)(?<!_)_(?!_)',
)
Markdown_Parser::$em_strong_relist
Initial value:
= array(
'' => '(?:(?<!\*)\*\*\*(?!\*)|(?<!_)___(?!_))(?=\S|$)(?![\.,:;]\s)',
'***' => '(?<=\S|^)(?<!\*)\*\*\*(?!\*)',
'___' => '(?<=\S|^)(?<!_)___(?!_)',
)
Markdown_Parser::$span_gamut
Initial value:
= array(
#
# These are all the transformations that occur *within* block-level
# tags like paragraphs, headers, and list items.
#
# Process character escapes, code spans, and inline HTML
# in one shot.
"parseSpan" => -30,
# Process anchor and image tags. Images must come first,
# because ![foo][f] looks like an anchor.
"doImages" => 10,
"doAnchors" => 20,
# Make links out of things like `<http:
# Must come after doAnchors, because you can use < and >
# delimiters in inline links like [this](<url>).
"doAutoLinks" => 30,
"encodeAmpsAndAngles" => 40,
"doItalicsAndBold" => 50,
"doHardBreaks" => 60,
)
Markdown_Parser::$strong_relist
Initial value:
= array(
'' => '(?:(?<!\*)\*\*(?!\*)|(?<!_)__(?!_))(?=\S|$)(?![\.,:;]\s)',
'**' => '(?<=\S|^)(?<!\*)\*\*(?!\*)',
'__' => '(?<=\S|^)(?<!_)__(?!_)',
)

The documentation for this class was generated from the following file: