PHP 클래스 Markdown_Parser, gitblog

파일 보기 프로젝트 열기: rsms/gitblog 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
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 )

메소드 상세

Markdown_Parser() 공개 메소드

public Markdown_Parser ( )

_detab_callback() 공개 메소드

public _detab_callback ( $matches )

_doAnchors_inline_callback() 공개 메소드

public _doAnchors_inline_callback ( $matches )

_doAnchors_reference_callback() 공개 메소드

public _doAnchors_reference_callback ( $matches )

_doBlockQuotes_callback() 공개 메소드

public _doBlockQuotes_callback ( $matches )

_doBlockQuotes_callback2() 공개 메소드

public _doBlockQuotes_callback2 ( $matches )

_doCodeBlocks_callback() 공개 메소드

public _doCodeBlocks_callback ( $matches )

_doHardBreaks_callback() 공개 메소드

public _doHardBreaks_callback ( $matches )

_doHeaders_callback_atx() 공개 메소드

public _doHeaders_callback_atx ( $matches )

_doHeaders_callback_setext() 공개 메소드

public _doHeaders_callback_setext ( $matches )

_doImages_inline_callback() 공개 메소드

public _doImages_inline_callback ( $matches )

_doImages_reference_callback() 공개 메소드

public _doImages_reference_callback ( $matches )

_doLists_callback() 공개 메소드

public _doLists_callback ( $matches )

_hashHTMLBlocks_callback() 공개 메소드

public _hashHTMLBlocks_callback ( $matches )

_initDetab() 공개 메소드

public _initDetab ( )

_processListItems_callback() 공개 메소드

public _processListItems_callback ( $matches )

_stripLinkDefinitions_callback() 공개 메소드

public _stripLinkDefinitions_callback ( $matches )

_unhash_callback() 공개 메소드

public _unhash_callback ( $matches )

detab() 공개 메소드

public detab ( $text )

doAnchors() 공개 메소드

public doAnchors ( $text )

doBlockQuotes() 공개 메소드

public doBlockQuotes ( $text )

doCodeBlocks() 공개 메소드

public doCodeBlocks ( $text )

doHardBreaks() 공개 메소드

public doHardBreaks ( $text )

doHeaders() 공개 메소드

public doHeaders ( $text )

doHorizontalRules() 공개 메소드

public doHorizontalRules ( $text )

doImages() 공개 메소드

public doImages ( $text )

doItalicsAndBold() 공개 메소드

public doItalicsAndBold ( $text )

doLists() 공개 메소드

public doLists ( $text )

encodeAmpsAndAngles() 공개 메소드

public encodeAmpsAndAngles ( $text )

encodeAttribute() 공개 메소드

public encodeAttribute ( $text )

encodeEmailAddress() 공개 메소드

public encodeEmailAddress ( $addr )

formParagraphs() 공개 메소드

public formParagraphs ( $text )

handleSpanToken() 공개 메소드

public handleSpanToken ( $token, &$str )

hashBlock() 공개 메소드

public hashBlock ( $text )

hashHTMLBlocks() 공개 메소드

public hashHTMLBlocks ( $text )

hashPart() 공개 메소드

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

makeCodeSpan() 공개 메소드

public makeCodeSpan ( $code )

outdent() 공개 메소드

public outdent ( $text )

parseSpan() 공개 메소드

public parseSpan ( $str )

prepareItalicsAndBold() 공개 메소드

processListItems() 공개 메소드

public processListItems ( $list_str, $marker_any_re )

runBasicBlockGamut() 공개 메소드

public runBasicBlockGamut ( $text )

runBlockGamut() 공개 메소드

public runBlockGamut ( $text )

runSpanGamut() 공개 메소드

public runSpanGamut ( $text )

setup() 공개 메소드

public setup ( )

stripLinkDefinitions() 공개 메소드

public stripLinkDefinitions ( $text )

teardown() 공개 메소드

public teardown ( )

transform() 공개 메소드

public transform ( $text )

unhash() 공개 메소드

public unhash ( $text )

프로퍼티 상세

$block_gamut 공개적으로 프로퍼티

public $block_gamut

$document_gamut 공개적으로 프로퍼티

public $document_gamut

$em_relist 공개적으로 프로퍼티

public $em_relist

$em_strong_prepared_relist 공개적으로 프로퍼티

public $em_strong_prepared_relist

$em_strong_relist 공개적으로 프로퍼티

public $em_strong_relist

$empty_element_suffix 공개적으로 프로퍼티

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

$escape_chars 공개적으로 프로퍼티

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

$escape_chars_re 공개적으로 프로퍼티

public $escape_chars_re

$html_hashes 공개적으로 프로퍼티

public $html_hashes

$in_anchor 공개적으로 프로퍼티

# Status flag to avoid invalid nesting.
public $in_anchor

$list_level 공개적으로 프로퍼티

public $list_level

$nested_brackets_depth 공개적으로 프로퍼티

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

$nested_brackets_re 공개적으로 프로퍼티

public $nested_brackets_re

$nested_url_parenthesis_depth 공개적으로 프로퍼티

public $nested_url_parenthesis_depth

$nested_url_parenthesis_re 공개적으로 프로퍼티

public $nested_url_parenthesis_re

$no_entities 공개적으로 프로퍼티

public $no_entities

$no_markup 공개적으로 프로퍼티

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

$predef_titles 공개적으로 프로퍼티

public $predef_titles

$predef_urls 공개적으로 프로퍼티

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

$span_gamut 공개적으로 프로퍼티

public $span_gamut

$strong_relist 공개적으로 프로퍼티

public $strong_relist

$tab_width 공개적으로 프로퍼티

public $tab_width

$titles 공개적으로 프로퍼티

public $titles

$urls 공개적으로 프로퍼티

# Internal hashes used during transformation.
public $urls

$utf8_strlen 공개적으로 프로퍼티

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