Moodle  2.2.1
http://www.collinsharper.com
MarkdownExtra_Parser Class Reference
Inheritance diagram for MarkdownExtra_Parser:
Collaboration diagram for MarkdownExtra_Parser:

Public Member Functions

 MarkdownExtra_Parser ()
 setup ()
 teardown ()
 hashHTMLBlocks ($text)
 _hashHTMLBlocks_inMarkdown ($text, $indent=0, $enclosing_tag_re= '', $span=false)
 _hashHTMLBlocks_inHTML ($text, $hash_method, $md_attr)
 hashClean ($text)
 doHeaders ($text)
 _doHeaders_attr ($attr)
 _doHeaders_callback_setext ($matches)
 _doHeaders_callback_atx ($matches)
 doTables ($text)
 _doTable_leadingPipe_callback ($matches)
 _doTable_callback ($matches)
 doDefLists ($text)
 _doDefLists_callback ($matches)
 processDefListItems ($list_str)
 _processDefListItems_callback_dt ($matches)
 _processDefListItems_callback_dd ($matches)
 doFencedCodeBlocks ($text)
 _doFencedCodeBlocks_callback ($matches)
 _doFencedCodeBlocks_newlines ($matches)
 formParagraphs ($text)
 stripFootnotes ($text)
 _stripFootnotes_callback ($matches)
 doFootnotes ($text)
 appendFootnotes ($text)
 _appendFootnotes_callback ($matches)
 stripAbbreviations ($text)
 _stripAbbreviations_callback ($matches)
 doAbbreviations ($text)
 _doAbbreviations_callback ($matches)

Data Fields

 $fn_id_prefix = ""
 $fn_link_title = MARKDOWN_FN_LINK_TITLE
 $fn_backlink_title = MARKDOWN_FN_BACKLINK_TITLE
 $fn_link_class = MARKDOWN_FN_LINK_CLASS
 $fn_backlink_class = MARKDOWN_FN_BACKLINK_CLASS
 $predef_abbr = array()
 $footnotes = array()
 $footnotes_ordered = array()
 $abbr_desciptions = array()
 $abbr_word_re = ''
 $footnote_counter = 1
 $block_tags_re = 'p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|address|form|fieldset|iframe|hr|legend'
 $context_block_tags_re = 'script|noscript|math|ins|del'
 $contain_span_tags_re = 'p|h[1-6]|li|dd|dt|td|th|legend|address'
 $clean_tags_re = 'script|math'
 $auto_close_tags_re = 'hr|img'
 $em_relist
 $strong_relist
 $em_strong_relist

Detailed Description

Definition at line 1677 of file markdown.php.


Member Function Documentation

_appendFootnotes_callback ( matches)

Definition at line 2748 of file markdown.php.

_doAbbreviations_callback ( matches)

Definition at line 2828 of file markdown.php.

_doDefLists_callback ( matches)

Definition at line 2455 of file markdown.php.

Definition at line 2572 of file markdown.php.

Definition at line 2580 of file markdown.php.

_doHeaders_attr ( attr)

Definition at line 2263 of file markdown.php.

_doHeaders_callback_atx ( matches)

Reimplemented from Markdown_Parser.

Definition at line 2275 of file markdown.php.

Reimplemented from Markdown_Parser.

Definition at line 2267 of file markdown.php.

_doTable_callback ( matches)

Definition at line 2354 of file markdown.php.

Definition at line 2344 of file markdown.php.

_hashHTMLBlocks_inHTML ( text,
hash_method,
md_attr 
)

Definition at line 2038 of file markdown.php.

Here is the caller graph for this function:

_hashHTMLBlocks_inMarkdown ( text,
indent = 0,
enclosing_tag_re = '',
span = false 
)

Definition at line 1809 of file markdown.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 2519 of file markdown.php.

Definition at line 2510 of file markdown.php.

Definition at line 2801 of file markdown.php.

_stripFootnotes_callback ( matches)

Definition at line 2672 of file markdown.php.

appendFootnotes ( text)

Definition at line 2691 of file markdown.php.

doAbbreviations ( text)

Definition at line 2812 of file markdown.php.

doDefLists ( text)

Definition at line 2413 of file markdown.php.

doFencedCodeBlocks ( text)

Definition at line 2539 of file markdown.php.

doFootnotes ( text)

Definition at line 2679 of file markdown.php.

doHeaders ( text)

Reimplemented from Markdown_Parser.

Definition at line 2223 of file markdown.php.

doTables ( text)

Definition at line 2283 of file markdown.php.

formParagraphs ( text)

Reimplemented from Markdown_Parser.

Definition at line 2607 of file markdown.php.

hashClean ( text)

Definition at line 2213 of file markdown.php.

hashHTMLBlocks ( text)

Reimplemented from Markdown_Parser.

Definition at line 1786 of file markdown.php.

Here is the call graph for this function:

Definition at line 1694 of file markdown.php.

Here is the call graph for this function:

processDefListItems ( list_str)

Definition at line 2467 of file markdown.php.

setup ( )

Reimplemented from Markdown_Parser.

Definition at line 1734 of file markdown.php.

stripAbbreviations ( text)

Definition at line 2786 of file markdown.php.

stripFootnotes ( text)

Definition at line 2645 of file markdown.php.

teardown ( )

Reimplemented from Markdown_Parser.

Definition at line 1754 of file markdown.php.


Field Documentation

$abbr_desciptions = array()

Definition at line 1727 of file markdown.php.

$abbr_word_re = ''

Definition at line 1728 of file markdown.php.

$auto_close_tags_re = 'hr|img'

Definition at line 1783 of file markdown.php.

$block_tags_re = 'p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|address|form|fieldset|iframe|hr|legend'

Definition at line 1770 of file markdown.php.

$clean_tags_re = 'script|math'

Definition at line 1780 of file markdown.php.

$contain_span_tags_re = 'p|h[1-6]|li|dd|dt|td|th|legend|address'

Definition at line 1776 of file markdown.php.

$context_block_tags_re = 'script|noscript|math|ins|del'

Definition at line 1773 of file markdown.php.

$em_relist
Initial value:
 array(
                ''  => '(?:(?<!\*)\*(?!\*)|(?<![a-zA-Z0-9_])_(?!_))(?=\S|$)(?![.,:;]\s)',
                '*' => '(?<=\S|^)(?<!\*)\*(?!\*)',
                '_' => '(?<=\S|^)(?<!_)_(?![a-zA-Z0-9_])',
                )

Reimplemented from Markdown_Parser.

Definition at line 2590 of file markdown.php.

$em_strong_relist
Initial value:
 array(
                ''    => '(?:(?<!\*)\*\*\*(?!\*)|(?<![a-zA-Z0-9_])___(?!_))(?=\S|$)(?![.,:;]\s)',
                '***' => '(?<=\S|^)(?<!\*)\*\*\*(?!\*)',
                '___' => '(?<=\S|^)(?<!_)___(?![a-zA-Z0-9_])',
                )

Reimplemented from Markdown_Parser.

Definition at line 2600 of file markdown.php.

$fn_backlink_class = MARKDOWN_FN_BACKLINK_CLASS

Definition at line 1688 of file markdown.php.

$fn_backlink_title = MARKDOWN_FN_BACKLINK_TITLE

Definition at line 1684 of file markdown.php.

$fn_id_prefix = ""

Definition at line 1680 of file markdown.php.

$fn_link_class = MARKDOWN_FN_LINK_CLASS

Definition at line 1687 of file markdown.php.

$fn_link_title = MARKDOWN_FN_LINK_TITLE

Definition at line 1683 of file markdown.php.

$footnote_counter = 1

Definition at line 1731 of file markdown.php.

$footnotes = array()

Definition at line 1725 of file markdown.php.

$footnotes_ordered = array()

Definition at line 1726 of file markdown.php.

$predef_abbr = array()

Definition at line 1691 of file markdown.php.

$strong_relist
Initial value:
 array(
                ''   => '(?:(?<!\*)\*\*(?!\*)|(?<![a-zA-Z0-9_])__(?!_))(?=\S|$)(?![.,:;]\s)',
                '**' => '(?<=\S|^)(?<!\*)\*\*(?!\*)',
                '__' => '(?<=\S|^)(?<!_)__(?![a-zA-Z0-9_])',
                )

Reimplemented from Markdown_Parser.

Definition at line 2595 of file markdown.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations