class Parsedown (View source)

Constants

version

Properties

protected $breaksEnabled
protected $markupEscaped
protected $urlsLinked
protected $safeMode
protected $strictMode
protected $safeLinksWhitelist
protected $BlockTypes
protected $unmarkedBlockTypes
protected $InlineTypes
protected $inlineMarkerList
protected $DefinitionData
protected $specialCharacters
protected $StrongRegex
protected $EmRegex
protected $regexHtmlAttribute
protected $voidElements
protected $textLevelElements

Methods

text($text)

No description

textElements($text)

No description

setBreaksEnabled($breaksEnabled)

No description

setMarkupEscaped($markupEscaped)

No description

setUrlsLinked($urlsLinked)

No description

setSafeMode($safeMode)

No description

setStrictMode($strictMode)

No description

lines(array $lines)

No description

linesElements(array $lines)

No description

extractElement(array $Component)

No description

isBlockContinuable($Type)

No description

isBlockCompletable($Type)

No description

blockCode($Line, $Block = null)

No description

blockCodeContinue($Line, $Block)

No description

blockCodeComplete($Block)

No description

blockComment($Line)

No description

blockCommentContinue($Line, array $Block)

No description

blockFencedCode($Line)

No description

blockFencedCodeContinue($Line, $Block)

No description

blockFencedCodeComplete($Block)

No description

blockHeader($Line)

No description

blockList($Line, array $CurrentBlock = null)

No description

blockListContinue($Line, array $Block)

No description

blockListComplete(array $Block)

No description

blockQuote($Line)

No description

blockQuoteContinue($Line, array $Block)

No description

blockRule($Line)

No description

blockSetextHeader($Line, array $Block = null)

No description

blockMarkup($Line)

No description

blockMarkupContinue($Line, array $Block)

No description

blockReference($Line)

No description

blockTable($Line, array $Block = null)

No description

blockTableContinue($Line, array $Block)

No description

paragraph($Line)

No description

paragraphContinue($Line, array $Block)

No description

line($text, $nonNestables = array())

No description

lineElements($text, $nonNestables = array())

No description

inlineText($text)

No description

inlineCode($Excerpt)

No description

inlineEmailTag($Excerpt)

No description

inlineEmphasis($Excerpt)

No description

inlineEscapeSequence($Excerpt)

No description

inlineImage($Excerpt)

No description

inlineLink($Excerpt)

No description

inlineMarkup($Excerpt)

No description

inlineSpecialCharacter($Excerpt)

No description

inlineStrikethrough($Excerpt)

No description

inlineUrl($Excerpt)

No description

inlineUrlTag($Excerpt)

No description

unmarkedText($text)

No description

handle(array $Element)

No description

handleElementRecursive(array $Element)

No description

handleElementsRecursive(array $Elements)

No description

elementApplyRecursive($closure, array $Element)

No description

elementApplyRecursiveDepthFirst($closure, array $Element)

No description

elementsApplyRecursive($closure, array $Elements)

No description

elementsApplyRecursiveDepthFirst($closure, array $Elements)

No description

element(array $Element)

No description

elements(array $Elements)

No description

li($lines)

No description

static 
pregReplaceElements($regexp, $Elements, $text)

Replace occurrences $regexp with $Elements in $text. Return an array of elements representing the replacement.

parse($text)

No description

sanitiseElement(array $Element)

No description

filterUnsafeUrlInAttribute(array $Element, $attribute)

No description

static 
escape($text, $allowQuotes = false)

No description

static 
striAtStart($string, $needle)

No description

static 
instance($name = 'default')

No description

Details

text($text)

No description

Parameters

$text

protected textElements($text)

No description

Parameters

$text

setBreaksEnabled($breaksEnabled)

No description

Parameters

$breaksEnabled

setMarkupEscaped($markupEscaped)

No description

Parameters

$markupEscaped

setUrlsLinked($urlsLinked)

No description

Parameters

$urlsLinked

setSafeMode($safeMode)

No description

Parameters

$safeMode

setStrictMode($strictMode)

No description

Parameters

$strictMode

protected lines(array $lines)

No description

Parameters

array $lines

protected linesElements(array $lines)

No description

Parameters

array $lines

protected extractElement(array $Component)

No description

Parameters

array $Component

protected isBlockContinuable($Type)

No description

Parameters

$Type

protected isBlockCompletable($Type)

No description

Parameters

$Type

protected blockCode($Line, $Block = null)

No description

Parameters

$Line
$Block

protected blockCodeContinue($Line, $Block)

No description

Parameters

$Line
$Block

protected blockCodeComplete($Block)

No description

Parameters

$Block

protected blockComment($Line)

No description

Parameters

$Line

protected blockCommentContinue($Line, array $Block)

No description

Parameters

$Line
array $Block

protected blockFencedCode($Line)

No description

Parameters

$Line

protected blockFencedCodeContinue($Line, $Block)

No description

Parameters

$Line
$Block

protected blockFencedCodeComplete($Block)

No description

Parameters

$Block

protected blockHeader($Line)

No description

Parameters

$Line

protected blockList($Line, array $CurrentBlock = null)

No description

Parameters

$Line
array $CurrentBlock

protected blockListContinue($Line, array $Block)

No description

Parameters

$Line
array $Block

protected blockListComplete(array $Block)

No description

Parameters

array $Block

protected blockQuote($Line)

No description

Parameters

$Line

protected blockQuoteContinue($Line, array $Block)

No description

Parameters

$Line
array $Block

protected blockRule($Line)

No description

Parameters

$Line

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

No description

Parameters

$Line
array $Block

protected blockMarkup($Line)

No description

Parameters

$Line

protected blockMarkupContinue($Line, array $Block)

No description

Parameters

$Line
array $Block

protected blockReference($Line)

No description

Parameters

$Line

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

No description

Parameters

$Line
array $Block

protected blockTableContinue($Line, array $Block)

No description

Parameters

$Line
array $Block

protected paragraph($Line)

No description

Parameters

$Line

protected paragraphContinue($Line, array $Block)

No description

Parameters

$Line
array $Block

line($text, $nonNestables = array())

No description

Parameters

$text
$nonNestables

protected lineElements($text, $nonNestables = array())

No description

Parameters

$text
$nonNestables

protected inlineText($text)

No description

Parameters

$text

protected inlineCode($Excerpt)

No description

Parameters

$Excerpt

protected inlineEmailTag($Excerpt)

No description

Parameters

$Excerpt

protected inlineEmphasis($Excerpt)

No description

Parameters

$Excerpt

protected inlineEscapeSequence($Excerpt)

No description

Parameters

$Excerpt

protected inlineImage($Excerpt)

No description

Parameters

$Excerpt

No description

Parameters

$Excerpt

protected inlineMarkup($Excerpt)

No description

Parameters

$Excerpt

protected inlineSpecialCharacter($Excerpt)

No description

Parameters

$Excerpt

protected inlineStrikethrough($Excerpt)

No description

Parameters

$Excerpt

protected inlineUrl($Excerpt)

No description

Parameters

$Excerpt

protected inlineUrlTag($Excerpt)

No description

Parameters

$Excerpt

protected unmarkedText($text)

No description

Parameters

$text

protected handle(array $Element)

No description

Parameters

array $Element

protected handleElementRecursive(array $Element)

No description

Parameters

array $Element

protected handleElementsRecursive(array $Elements)

No description

Parameters

array $Elements

protected elementApplyRecursive($closure, array $Element)

No description

Parameters

$closure
array $Element

protected elementApplyRecursiveDepthFirst($closure, array $Element)

No description

Parameters

$closure
array $Element

protected elementsApplyRecursive($closure, array $Elements)

No description

Parameters

$closure
array $Elements

protected elementsApplyRecursiveDepthFirst($closure, array $Elements)

No description

Parameters

$closure
array $Elements

protected element(array $Element)

No description

Parameters

array $Element

protected elements(array $Elements)

No description

Parameters

array $Elements

protected li($lines)

No description

Parameters

$lines

static protected pregReplaceElements($regexp, $Elements, $text)

Replace occurrences $regexp with $Elements in $text. Return an array of elements representing the replacement.

Parameters

$regexp
$Elements
$text

parse($text)

No description

Parameters

$text

protected sanitiseElement(array $Element)

No description

Parameters

array $Element

protected filterUnsafeUrlInAttribute(array $Element, $attribute)

No description

Parameters

array $Element
$attribute

static protected escape($text, $allowQuotes = false)

No description

Parameters

$text
$allowQuotes

static protected striAtStart($string, $needle)

No description

Parameters

$string
$needle

static instance($name = 'default')

No description

Parameters

$name