PHP Class Markdown_Parser, gitblog

Exibir arquivo Open project: rsms/gitblog Class Usage Examples

Public Properties

Property Type Description
$block_gamut
$document_gamut
$em_relist
$em_strong_prepared_relist
$em_strong_relist
$empty_element_suffix # Change to ">" for HTML output.
$escape_chars # Table of hash values for escaped characters:
$escape_chars_re
$html_hashes
$in_anchor # Status flag to avoid invalid nesting.
$list_level
$nested_brackets_depth # Needed to insert a maximum bracked depth while converting to PHP.
$nested_brackets_re
$nested_url_parenthesis_depth
$nested_url_parenthesis_re
$no_entities
$no_markup # Change to true to disallow markup or entities.
$predef_titles
$predef_urls # Predefined urls and titles for reference links and images.
$span_gamut
$strong_relist
$tab_width
$titles
$urls # Internal hashes used during transformation.
$utf8_strlen # hanlde UTF-8 if the default function does not exist.

Public Methods

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

Method Details

Markdown_Parser() public method

public Markdown_Parser ( )

_detab_callback() public method

public _detab_callback ( $matches )

_doAnchors_inline_callback() public method

public _doAnchors_inline_callback ( $matches )

_doAnchors_reference_callback() public method

public _doAnchors_reference_callback ( $matches )

_doBlockQuotes_callback() public method

public _doBlockQuotes_callback ( $matches )

_doBlockQuotes_callback2() public method

public _doBlockQuotes_callback2 ( $matches )

_doCodeBlocks_callback() public method

public _doCodeBlocks_callback ( $matches )

_doHardBreaks_callback() public method

public _doHardBreaks_callback ( $matches )

_doHeaders_callback_atx() public method

public _doHeaders_callback_atx ( $matches )

_doHeaders_callback_setext() public method

public _doHeaders_callback_setext ( $matches )

_doImages_inline_callback() public method

public _doImages_inline_callback ( $matches )

_doImages_reference_callback() public method

public _doImages_reference_callback ( $matches )

_doLists_callback() public method

public _doLists_callback ( $matches )

_hashHTMLBlocks_callback() public method

public _hashHTMLBlocks_callback ( $matches )

_initDetab() public method

public _initDetab ( )

_processListItems_callback() public method

public _processListItems_callback ( $matches )

_stripLinkDefinitions_callback() public method

public _stripLinkDefinitions_callback ( $matches )

_unhash_callback() public method

public _unhash_callback ( $matches )

detab() public method

public detab ( $text )

doAnchors() public method

public doAnchors ( $text )

doBlockQuotes() public method

public doBlockQuotes ( $text )

doCodeBlocks() public method

public doCodeBlocks ( $text )

doHardBreaks() public method

public doHardBreaks ( $text )

doHeaders() public method

public doHeaders ( $text )

doHorizontalRules() public method

public doHorizontalRules ( $text )

doImages() public method

public doImages ( $text )

doItalicsAndBold() public method

public doItalicsAndBold ( $text )

doLists() public method

public doLists ( $text )

encodeAmpsAndAngles() public method

public encodeAmpsAndAngles ( $text )

encodeAttribute() public method

public encodeAttribute ( $text )

encodeEmailAddress() public method

public encodeEmailAddress ( $addr )

formParagraphs() public method

public formParagraphs ( $text )

handleSpanToken() public method

public handleSpanToken ( $token, &$str )

hashBlock() public method

public hashBlock ( $text )

hashHTMLBlocks() public method

public hashHTMLBlocks ( $text )

hashPart() public method

public hashPart ( $text, $boundary = 'X' )

makeCodeSpan() public method

public makeCodeSpan ( $code )

outdent() public method

public outdent ( $text )

parseSpan() public method

public parseSpan ( $str )

prepareItalicsAndBold() public method

processListItems() public method

public processListItems ( $list_str, $marker_any_re )

runBasicBlockGamut() public method

public runBasicBlockGamut ( $text )

runBlockGamut() public method

public runBlockGamut ( $text )

runSpanGamut() public method

public runSpanGamut ( $text )

setup() public method

public setup ( )

stripLinkDefinitions() public method

public stripLinkDefinitions ( $text )

teardown() public method

public teardown ( )

transform() public method

public transform ( $text )

unhash() public method

public unhash ( $text )

Property Details

$block_gamut public_oe property

public $block_gamut

$document_gamut public_oe property

public $document_gamut

$em_relist public_oe property

public $em_relist

$em_strong_prepared_relist public_oe property

public $em_strong_prepared_relist

$em_strong_relist public_oe property

public $em_strong_relist

$empty_element_suffix public_oe property

# Change to ">" for HTML output.
public $empty_element_suffix

$escape_chars public_oe property

# Table of hash values for escaped characters:
public $escape_chars

$escape_chars_re public_oe property

public $escape_chars_re

$html_hashes public_oe property

public $html_hashes

$in_anchor public_oe property

# Status flag to avoid invalid nesting.
public $in_anchor

$list_level public_oe property

public $list_level

$nested_brackets_depth public_oe property

# Needed to insert a maximum bracked depth while converting to PHP.
public $nested_brackets_depth

$nested_brackets_re public_oe property

public $nested_brackets_re

$nested_url_parenthesis_depth public_oe property

public $nested_url_parenthesis_depth

$nested_url_parenthesis_re public_oe property

public $nested_url_parenthesis_re

$no_entities public_oe property

public $no_entities

$no_markup public_oe property

# Change to true to disallow markup or entities.
public $no_markup

$predef_titles public_oe property

public $predef_titles

$predef_urls public_oe property

# Predefined urls and titles for reference links and images.
public $predef_urls

$span_gamut public_oe property

public $span_gamut

$strong_relist public_oe property

public $strong_relist

$tab_width public_oe property

public $tab_width

$titles public_oe property

public $titles

$urls public_oe property

# Internal hashes used during transformation.
public $urls

$utf8_strlen public_oe property

# hanlde UTF-8 if the default function does not exist.
public $utf8_strlen