PHP 클래스 org\parser\driver\Markdown

파일 보기 프로젝트 열기: top-think/thinkphp-extend

공개 프로퍼티들

프로퍼티 타입 설명
$empty_element_suffix # Change to ">" for HTML output.
$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.
$tab_width

보호된 프로퍼티들

프로퍼티 타입 설명
$block_gamut
$document_gamut
$em_relist
$em_strong_prepared_relist
$em_strong_relist
$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
$span_gamut
$strong_relist
$titles
$urls # Internal hashes used during transformation.
$utf8_strlen # hanlde UTF-8 if the default function does not exist.

공개 메소드들

메소드 설명
__construct ( )
defaultTransform ( $text ) ### Simple Function Interface ###
parse ( string $content ) : string 提供给ThinkPHP外部调用的方法,麦当苗儿为ThinkPHP添加

보호된 메소드들

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

메소드 상세

__construct() 공개 메소드

public __construct ( )

_detab_callback() 보호된 메소드

protected _detab_callback ( $matches )

_doAnchors_inline_callback() 보호된 메소드

protected _doAnchors_inline_callback ( $matches )

_doAnchors_reference_callback() 보호된 메소드

protected _doAnchors_reference_callback ( $matches )

_doBlockQuotes_callback() 보호된 메소드

protected _doBlockQuotes_callback ( $matches )

_doBlockQuotes_callback2() 보호된 메소드

protected _doBlockQuotes_callback2 ( $matches )

_doCodeBlocks_callback() 보호된 메소드

protected _doCodeBlocks_callback ( $matches )

_doHardBreaks_callback() 보호된 메소드

protected _doHardBreaks_callback ( $matches )

_doHeaders_callback_atx() 보호된 메소드

protected _doHeaders_callback_atx ( $matches )

_doHeaders_callback_setext() 보호된 메소드

protected _doHeaders_callback_setext ( $matches )

_doImages_inline_callback() 보호된 메소드

protected _doImages_inline_callback ( $matches )

_doImages_reference_callback() 보호된 메소드

protected _doImages_reference_callback ( $matches )

_doLists_callback() 보호된 메소드

protected _doLists_callback ( $matches )

_hashHTMLBlocks_callback() 보호된 메소드

protected _hashHTMLBlocks_callback ( $matches )

_initDetab() 보호된 메소드

protected _initDetab ( )

_processListItems_callback() 보호된 메소드

protected _processListItems_callback ( $matches )

_stripLinkDefinitions_callback() 보호된 메소드

protected _stripLinkDefinitions_callback ( $matches )

_unhash_callback() 보호된 메소드

protected _unhash_callback ( $matches )

defaultTransform() 공개 정적인 메소드

### Simple Function Interface ###
public static defaultTransform ( $text )

detab() 보호된 메소드

protected detab ( $text )

doAnchors() 보호된 메소드

protected doAnchors ( $text )

doBlockQuotes() 보호된 메소드

protected doBlockQuotes ( $text )

doCodeBlocks() 보호된 메소드

protected doCodeBlocks ( $text )

doHardBreaks() 보호된 메소드

protected doHardBreaks ( $text )

doHeaders() 보호된 메소드

protected doHeaders ( $text )

doHorizontalRules() 보호된 메소드

protected doHorizontalRules ( $text )

doImages() 보호된 메소드

protected doImages ( $text )

doItalicsAndBold() 보호된 메소드

protected doItalicsAndBold ( $text )

doLists() 보호된 메소드

protected doLists ( $text )

encodeAmpsAndAngles() 보호된 메소드

protected encodeAmpsAndAngles ( $text )

encodeAttribute() 보호된 메소드

protected encodeAttribute ( $text )

encodeEmailAddress() 보호된 메소드

protected encodeEmailAddress ( $addr )

formParagraphs() 보호된 메소드

protected formParagraphs ( $text )

handleSpanToken() 보호된 메소드

protected handleSpanToken ( $token, &$str )

hashBlock() 보호된 메소드

protected hashBlock ( $text )

hashHTMLBlocks() 보호된 메소드

protected hashHTMLBlocks ( $text )

hashPart() 보호된 메소드

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

makeCodeSpan() 보호된 메소드

protected makeCodeSpan ( $code )

outdent() 보호된 메소드

protected outdent ( $text )

parse() 공개 메소드

提供给ThinkPHP外部调用的方法,麦当苗儿为ThinkPHP添加
저자: ([email protected])
public parse ( string $content ) : string
$content string 需要解析的Markdown字符串
리턴 string 解析后的HTML字符串

parseSpan() 보호된 메소드

protected parseSpan ( $str )

prepareItalicsAndBold() 보호된 메소드

protected prepareItalicsAndBold ( )

processListItems() 보호된 메소드

protected processListItems ( $list_str, $marker_any_re )

runBasicBlockGamut() 보호된 메소드

protected runBasicBlockGamut ( $text )

runBlockGamut() 보호된 메소드

protected runBlockGamut ( $text )

runSpanGamut() 보호된 메소드

protected runSpanGamut ( $text )

setup() 보호된 메소드

protected setup ( )

stripLinkDefinitions() 보호된 메소드

protected stripLinkDefinitions ( $text )

teardown() 보호된 메소드

protected teardown ( )

transform() 보호된 메소드

protected transform ( $text )

unhash() 보호된 메소드

protected unhash ( $text )

프로퍼티 상세

$block_gamut 보호되어 있는 프로퍼티

protected $block_gamut

$document_gamut 보호되어 있는 프로퍼티

protected $document_gamut

$em_relist 보호되어 있는 프로퍼티

protected $em_relist

$em_strong_prepared_relist 보호되어 있는 프로퍼티

protected $em_strong_prepared_relist

$em_strong_relist 보호되어 있는 프로퍼티

protected $em_strong_relist

$empty_element_suffix 공개적으로 프로퍼티

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

$escape_chars 보호되어 있는 프로퍼티

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

$escape_chars_re 보호되어 있는 프로퍼티

protected $escape_chars_re

$html_hashes 보호되어 있는 프로퍼티

protected $html_hashes

$in_anchor 보호되어 있는 프로퍼티

# Status flag to avoid invalid nesting.
protected $in_anchor

$list_level 보호되어 있는 프로퍼티

protected $list_level

$nested_brackets_depth 보호되어 있는 프로퍼티

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

$nested_brackets_re 보호되어 있는 프로퍼티

protected $nested_brackets_re

$nested_url_parenthesis_depth 보호되어 있는 프로퍼티

protected $nested_url_parenthesis_depth

$nested_url_parenthesis_re 보호되어 있는 프로퍼티

protected $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 보호되어 있는 프로퍼티

protected $span_gamut

$strong_relist 보호되어 있는 프로퍼티

protected $strong_relist

$tab_width 공개적으로 프로퍼티

public $tab_width

$titles 보호되어 있는 프로퍼티

protected $titles

$urls 보호되어 있는 프로퍼티

# Internal hashes used during transformation.
protected $urls

$utf8_strlen 보호되어 있는 프로퍼티

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