PHP Class parsedown

Exibir arquivo Open project: anchorcms/anchor-cms Class Usage Examples

Protected Properties

Property Type Description
$BlockTypes #
$DefinitionData #
$DefinitionTypes # ~
$EmRegex
$InlineTypes #
$StrongRegex
$breaksEnabled
$inlineMarkerList # ~
$markupEscaped
$regexHtmlAttribute
$specialCharacters # Read-Only
$textLevelElements
$unmarkedBlockTypes # ~
$urlsLinked
$voidElements

Public Methods

Method Description
instance ( $name = 'default' ) #
line ( $text ) #
parse ( $text ) #
setBreaksEnabled ( $breaksEnabled ) #
setMarkupEscaped ( $markupEscaped )
setUrlsLinked ( $urlsLinked )
text ( $text ) # ~

Protected Methods

Method Description
blockCode ( $Line, $Block = null ) # Code
blockCodeComplete ( $Block )
blockCodeContinue ( $Line, $Block )
blockComment ( $Line ) # Comment
blockCommentContinue ( $Line, array $Block )
blockFencedCode ( $Line ) # Fenced Code
blockFencedCodeComplete ( $Block )
blockFencedCodeContinue ( $Line, $Block )
blockHeader ( $Line ) # Header
blockList ( $Line ) # List
blockListContinue ( $Line, array $Block )
blockMarkup ( $Line ) # Markup
blockMarkupContinue ( $Line, array $Block )
blockQuote ( $Line ) # Quote
blockQuoteContinue ( $Line, array $Block )
blockReference ( $Line ) # Reference
blockRule ( $Line ) # Rule
blockSetextHeader ( $Line, array $Block = null ) # Setext
blockTable ( $Line, array $Block = null ) # Table
blockTableContinue ( $Line, array $Block )
element ( array $Element ) #
elements ( array $Elements )
inlineCode ( $Excerpt ) #
inlineEmailTag ( $Excerpt )
inlineEmphasis ( $Excerpt )
inlineEscapeSequence ( $Excerpt )
inlineImage ( $Excerpt )
inlineLink ( $Excerpt )
inlineMarkup ( $Excerpt )
inlineSpecialCharacter ( $Excerpt )
inlineStrikethrough ( $Excerpt )
inlineUrl ( $Excerpt )
inlineUrlTag ( $Excerpt )
li ( $lines ) # ~
paragraph ( $Line ) #
unmarkedText ( $text ) # ~

Private Methods

Method Description
lines ( array $lines ) #

Method Details

blockCode() protected method

# Code
protected blockCode ( $Line, $Block = null )

blockCodeComplete() protected method

protected blockCodeComplete ( $Block )

blockCodeContinue() protected method

protected blockCodeContinue ( $Line, $Block )

blockComment() protected method

# Comment
protected blockComment ( $Line )

blockCommentContinue() protected method

protected blockCommentContinue ( $Line, array $Block )
$Block array

blockFencedCode() protected method

# Fenced Code
protected blockFencedCode ( $Line )

blockFencedCodeComplete() protected method

protected blockFencedCodeComplete ( $Block )

blockFencedCodeContinue() protected method

protected blockFencedCodeContinue ( $Line, $Block )

blockHeader() protected method

# Header
protected blockHeader ( $Line )

blockList() protected method

# List
protected blockList ( $Line )

blockListContinue() protected method

protected blockListContinue ( $Line, array $Block )
$Block array

blockMarkup() protected method

# Markup
protected blockMarkup ( $Line )

blockMarkupContinue() protected method

protected blockMarkupContinue ( $Line, array $Block )
$Block array

blockQuote() protected method

# Quote
protected blockQuote ( $Line )

blockQuoteContinue() protected method

protected blockQuoteContinue ( $Line, array $Block )
$Block array

blockReference() protected method

# Reference
protected blockReference ( $Line )

blockRule() protected method

# Rule
protected blockRule ( $Line )

blockSetextHeader() protected method

# Setext
protected blockSetextHeader ( $Line, array $Block = null )
$Block array

blockTable() protected method

# Table
protected blockTable ( $Line, array $Block = null )
$Block array

blockTableContinue() protected method

protected blockTableContinue ( $Line, array $Block )
$Block array

element() protected method

#
protected element ( array $Element )
$Element array

elements() protected method

protected elements ( array $Elements )
$Elements array

inlineCode() protected method

#
protected inlineCode ( $Excerpt )

inlineEmailTag() protected method

protected inlineEmailTag ( $Excerpt )

inlineEmphasis() protected method

protected inlineEmphasis ( $Excerpt )

inlineEscapeSequence() protected method

protected inlineEscapeSequence ( $Excerpt )

inlineImage() protected method

protected inlineImage ( $Excerpt )

inlineMarkup() protected method

protected inlineMarkup ( $Excerpt )

inlineSpecialCharacter() protected method

protected inlineSpecialCharacter ( $Excerpt )

inlineStrikethrough() protected method

protected inlineStrikethrough ( $Excerpt )

inlineUrl() protected method

protected inlineUrl ( $Excerpt )

inlineUrlTag() protected method

protected inlineUrlTag ( $Excerpt )

instance() public static method

#
public static instance ( $name = 'default' )

li() protected method

# ~
protected li ( $lines )

line() public method

#
public line ( $text )

paragraph() protected method

#
protected paragraph ( $Line )

parse() public method

#
public parse ( $text )

setBreaksEnabled() public method

#
public setBreaksEnabled ( $breaksEnabled )

setMarkupEscaped() public method

public setMarkupEscaped ( $markupEscaped )

setUrlsLinked() public method

public setUrlsLinked ( $urlsLinked )

text() public method

# ~
public text ( $text )

unmarkedText() protected method

# ~
protected unmarkedText ( $text )

Property Details

$BlockTypes protected_oe property

#
protected $BlockTypes

$DefinitionData protected_oe property

#
protected $DefinitionData

$DefinitionTypes protected_oe property

# ~
protected $DefinitionTypes

$EmRegex protected_oe property

protected $EmRegex

$InlineTypes protected_oe property

#
protected $InlineTypes

$StrongRegex protected_oe property

protected $StrongRegex

$breaksEnabled protected_oe property

protected $breaksEnabled

$inlineMarkerList protected_oe property

# ~
protected $inlineMarkerList

$markupEscaped protected_oe property

protected $markupEscaped

$regexHtmlAttribute protected_oe property

protected $regexHtmlAttribute

$specialCharacters protected_oe property

# Read-Only
protected $specialCharacters

$textLevelElements protected_oe property

protected $textLevelElements

$unmarkedBlockTypes protected_oe property

# ~
protected $unmarkedBlockTypes

$urlsLinked protected_oe property

protected $urlsLinked

$voidElements protected_oe property

protected $voidElements