PHP Class _MarkdownExtra_TmpImpl

Inheritance: extends Markdown
Exibir arquivo Open project: zblogcn/zblogphp Class Usage Examples

Public Properties

Property Type Description
$code_attr_on_pre # setting this to true will put attributes on the pre tag instead.
$code_class_prefix # Optional class prefix for fenced code block.
$fn_backlink_class
$fn_backlink_title
$fn_id_prefix # Prefix for footnote ids.
$fn_link_class # Optional class attribute for footnote links and backlinks.
$fn_link_title # Optional title attribute for footnote links and backlinks.
$predef_abbr # Predefined abbreviations.
$table_align_class_tmpl # If empty, the align attribute is used instead of a class name.

Protected Properties

Property Type Description
$abbr_desciptions
$abbr_word_re
$auto_close_tags_re # Tags that do not need to be closed.
$block_tags_re # Tags that are always treated as block tags:
$clean_tags_re # they appear:
$contain_span_tags_re # Tags where markdown="1" default to span mode:
$context_block_tags_re # Tags treated as block tags only if the opening tag is alone on its line:
$em_relist #
$em_strong_relist
$footnote_counter # Give the current footnote number.
$footnotes # Extra variables used during extra transformations.
$footnotes_numbers
$footnotes_ordered
$footnotes_ref_count
$id_class_attr_catch_re # Expression to use to catch attributes (includes the braces)
$id_class_attr_nocatch_re # Expression to use when parsing in a context when no capture is desired
$strong_relist

Public Methods

Method Description
__construct ( ) ### Parser Implementation ###

Protected Methods

Method Description
_appendFootnotes_callback ( $matches )
_doAbbreviations_callback ( $matches )
_doAnchors_inline_callback ( $matches )
_doAnchors_reference_callback ( $matches )
_doDefLists_callback ( $matches )
_doFencedCodeBlocks_callback ( $matches )
_doFencedCodeBlocks_newlines ( $matches )
_doHeaders_callback_atx ( $matches )
_doHeaders_callback_setext ( $matches )
_doImages_inline_callback ( $matches )
_doImages_reference_callback ( $matches )
_doTable_callback ( $matches )
_doTable_leadingPipe_callback ( $matches )
_doTable_makeAlignAttr ( $alignname )
_hashHTMLBlocks_inHTML ( $text, $hash_method, $md_attr )
_hashHTMLBlocks_inMarkdown ( $text, $indent, $enclosing_tag_re = '', $span = false )
_processDefListItems_callback_dd ( $matches )
_processDefListItems_callback_dt ( $matches )
_stripAbbreviations_callback ( $matches )
_stripFootnotes_callback ( $matches )
_stripLinkDefinitions_callback ( $matches )
appendFootnotes ( $text )
doAbbreviations ( $text )
doAnchors ( $text )
doDefLists ( $text )
doExtraAttributes ( $tag_name, $attr )
doFencedCodeBlocks ( $text )
doFootnotes ( $text )
doHeaders ( $text )
doImages ( $text )
doTables ( $text )
formParagraphs ( $text )
hashClean ( $text )
hashHTMLBlocks ( $text )
processDefListItems ( $list_str )
setup ( )
stripAbbreviations ( $text ) ### Abbreviations ###
stripFootnotes ( $text ) ### Footnotes
stripLinkDefinitions ( $text )
teardown ( )

Method Details

__construct() public method

### Parser Implementation ###
public __construct ( )

_appendFootnotes_callback() protected method

protected _appendFootnotes_callback ( $matches )

_doAbbreviations_callback() protected method

protected _doAbbreviations_callback ( $matches )

_doAnchors_inline_callback() protected method

protected _doAnchors_inline_callback ( $matches )

_doAnchors_reference_callback() protected method

protected _doAnchors_reference_callback ( $matches )

_doDefLists_callback() protected method

protected _doDefLists_callback ( $matches )

_doFencedCodeBlocks_callback() protected method

protected _doFencedCodeBlocks_callback ( $matches )

_doFencedCodeBlocks_newlines() protected method

protected _doFencedCodeBlocks_newlines ( $matches )

_doHeaders_callback_atx() protected method

protected _doHeaders_callback_atx ( $matches )

_doHeaders_callback_setext() protected method

protected _doHeaders_callback_setext ( $matches )

_doImages_inline_callback() protected method

protected _doImages_inline_callback ( $matches )

_doImages_reference_callback() protected method

protected _doImages_reference_callback ( $matches )

_doTable_callback() protected method

protected _doTable_callback ( $matches )

_doTable_leadingPipe_callback() protected method

protected _doTable_leadingPipe_callback ( $matches )

_doTable_makeAlignAttr() protected method

protected _doTable_makeAlignAttr ( $alignname )

_hashHTMLBlocks_inHTML() protected method

protected _hashHTMLBlocks_inHTML ( $text, $hash_method, $md_attr )

_hashHTMLBlocks_inMarkdown() protected method

protected _hashHTMLBlocks_inMarkdown ( $text, $indent, $enclosing_tag_re = '', $span = false )

_processDefListItems_callback_dd() protected method

protected _processDefListItems_callback_dd ( $matches )

_processDefListItems_callback_dt() protected method

protected _processDefListItems_callback_dt ( $matches )

_stripAbbreviations_callback() protected method

protected _stripAbbreviations_callback ( $matches )

_stripFootnotes_callback() protected method

protected _stripFootnotes_callback ( $matches )

_stripLinkDefinitions_callback() protected method

protected _stripLinkDefinitions_callback ( $matches )

appendFootnotes() protected method

protected appendFootnotes ( $text )

doAbbreviations() protected method

protected doAbbreviations ( $text )

doAnchors() protected method

protected doAnchors ( $text )

doDefLists() protected method

protected doDefLists ( $text )

doExtraAttributes() protected method

protected doExtraAttributes ( $tag_name, $attr )

doFencedCodeBlocks() protected method

protected doFencedCodeBlocks ( $text )

doFootnotes() protected method

protected doFootnotes ( $text )

doHeaders() protected method

protected doHeaders ( $text )

doImages() protected method

protected doImages ( $text )

doTables() protected method

protected doTables ( $text )

formParagraphs() protected method

protected formParagraphs ( $text )

hashClean() protected method

protected hashClean ( $text )

hashHTMLBlocks() protected method

protected hashHTMLBlocks ( $text )

processDefListItems() protected method

protected processDefListItems ( $list_str )

setup() protected method

protected setup ( )

stripAbbreviations() protected method

### Abbreviations ###
protected stripAbbreviations ( $text )

stripFootnotes() protected method

### Footnotes
protected stripFootnotes ( $text )

stripLinkDefinitions() protected method

protected stripLinkDefinitions ( $text )

teardown() protected method

protected teardown ( )

Property Details

$abbr_desciptions protected_oe property

protected $abbr_desciptions

$abbr_word_re protected_oe property

protected $abbr_word_re

$auto_close_tags_re protected_oe property

# Tags that do not need to be closed.
protected $auto_close_tags_re

$block_tags_re protected_oe property

# Tags that are always treated as block tags:
protected $block_tags_re

$clean_tags_re protected_oe property

# they appear:
protected $clean_tags_re

$code_attr_on_pre public_oe property

# setting this to true will put attributes on the pre tag instead.
public $code_attr_on_pre

$code_class_prefix public_oe property

# Optional class prefix for fenced code block.
public $code_class_prefix

$contain_span_tags_re protected_oe property

# Tags where markdown="1" default to span mode:
protected $contain_span_tags_re

$context_block_tags_re protected_oe property

# Tags treated as block tags only if the opening tag is alone on its line:
protected $context_block_tags_re

$em_relist protected_oe property

#
protected $em_relist

$em_strong_relist protected_oe property

protected $em_strong_relist

$fn_id_prefix public_oe property

# Prefix for footnote ids.
public $fn_id_prefix

$footnote_counter protected_oe property

# Give the current footnote number.
protected $footnote_counter

$footnotes protected_oe property

# Extra variables used during extra transformations.
protected $footnotes

$footnotes_numbers protected_oe property

protected $footnotes_numbers

$footnotes_ordered protected_oe property

protected $footnotes_ordered

$footnotes_ref_count protected_oe property

protected $footnotes_ref_count

$id_class_attr_catch_re protected_oe property

# Expression to use to catch attributes (includes the braces)
protected $id_class_attr_catch_re

$id_class_attr_nocatch_re protected_oe property

# Expression to use when parsing in a context when no capture is desired
protected $id_class_attr_nocatch_re

$predef_abbr public_oe property

# Predefined abbreviations.
public $predef_abbr

$strong_relist protected_oe property

protected $strong_relist

$table_align_class_tmpl public_oe property

# If empty, the align attribute is used instead of a class name.
public $table_align_class_tmpl