ParsedownExtra
extends Parsedown
in package
Parsedown Extra https://github.com/erusev/parsedown-extra
(c) Emanuil Rusev http://erusev.com
For the full license information, view the LICENSE file that was distributed with this source code.
Tags
Table of Contents
Constants
- version = '0.8.1'
Properties
- $BlockTypes : mixed
- $breaksEnabled : mixed
- $DefinitionData : mixed
- $EmRegex : mixed
- $inlineMarkerList : mixed
- $InlineTypes : mixed
- $markupEscaped : mixed
- $regexAttribute : mixed
- $regexHtmlAttribute : mixed
- $safeLinksWhitelist : mixed
- $safeMode : mixed
- $specialCharacters : mixed
- $StrongRegex : mixed
- $textLevelElements : mixed
- $unmarkedBlockTypes : mixed
- $urlsLinked : mixed
- $voidElements : mixed
- $footnoteCount : mixed
- $instances : mixed
Methods
- __construct() : mixed
- instance() : mixed
- line() : mixed
- parse() : mixed
- setBreaksEnabled() : mixed
- setMarkupEscaped() : mixed
- setSafeMode() : mixed
- setUrlsLinked() : mixed
- text() : mixed
- addDdElement() : mixed
- blockAbbreviation() : mixed
- blockCode() : mixed
- blockCodeComplete() : mixed
- blockCodeContinue() : mixed
- blockComment() : mixed
- blockCommentContinue() : mixed
- blockDefinitionList() : mixed
- blockDefinitionListContinue() : mixed
- blockFencedCode() : mixed
- blockFencedCodeComplete() : mixed
- blockFencedCodeContinue() : mixed
- blockFootnote() : mixed
- blockFootnoteComplete() : mixed
- blockFootnoteContinue() : mixed
- blockHeader() : mixed
- blockList() : mixed
- blockListComplete() : mixed
- blockListContinue() : mixed
- blockMarkup() : mixed
- blockMarkupComplete() : mixed
- blockMarkupContinue() : mixed
- blockQuote() : mixed
- blockQuoteContinue() : mixed
- blockReference() : mixed
- blockRule() : mixed
- blockSetextHeader() : mixed
- blockTable() : mixed
- blockTableContinue() : mixed
- buildFootnoteElement() : mixed
- element() : mixed
- elements() : mixed
- escape() : mixed
- filterUnsafeUrlInAttribute() : mixed
- inlineCode() : mixed
- inlineEmailTag() : mixed
- inlineEmphasis() : mixed
- inlineEscapeSequence() : mixed
- inlineFootnoteMarker() : mixed
- inlineImage() : mixed
- inlineLink() : mixed
- inlineMarkup() : mixed
- inlineSpecialCharacter() : mixed
- inlineStrikethrough() : mixed
- inlineUrl() : mixed
- inlineUrlTag() : mixed
- isBlockCompletable() : mixed
- isBlockContinuable() : mixed
- li() : mixed
- lines() : mixed
- paragraph() : mixed
- parseAttributeData() : mixed
- processTag() : mixed
- sanitiseElement() : mixed
- sortFootnotes() : mixed
- striAtStart() : mixed
- unmarkedText() : mixed
Constants
version
public
mixed
version
= '0.8.1'
Properties
$BlockTypes
protected
mixed
$BlockTypes
= array('#' => array('Header'), '*' => array('Rule', 'List'), '+' => array('List'), '-' => array('SetextHeader', 'Table', 'Rule', 'List'), '0' => array('List'), '1' => array('List'), '2' => array('List'), '3' => array('List'), '4' => array('List'), '5' => array('List'), '6' => array('List'), '7' => array('List'), '8' => array('List'), '9' => array('List'), ':' => array('Table'), '<' => array('Comment', 'Markup'), '=' => array('SetextHeader'), '>' => array('Quote'), '[' => array('Reference'), '_' => array('Rule'), '`' => array('FencedCode'), '|' => array('Table'), '~' => array('FencedCode'))
$breaksEnabled
protected
mixed
$breaksEnabled
$DefinitionData
protected
mixed
$DefinitionData
$EmRegex
protected
mixed
$EmRegex
= array('*' => '/^[*]((?:\\\\\\*|[^*]|[*][*][^*]+?[*][*])+?)[*](?![*])/s', '_' => '/^_((?:\\\\_|[^_]|__[^_]*__)+?)_(?!_)\b/us')
$inlineMarkerList
protected
mixed
$inlineMarkerList
= '!"*_&[:<>`~\\'
$InlineTypes
protected
mixed
$InlineTypes
= array('"' => array('SpecialCharacter'), '!' => array('Image'), '&' => array('SpecialCharacter'), '*' => array('Emphasis'), ':' => array('Url'), '<' => array('UrlTag', 'EmailTag', 'Markup', 'SpecialCharacter'), '>' => array('SpecialCharacter'), '[' => array('Link'), '_' => array('Emphasis'), '`' => array('Code'), '~' => array('Strikethrough'), '\\' => array('EscapeSequence'))
$markupEscaped
protected
mixed
$markupEscaped
$regexAttribute
protected
mixed
$regexAttribute
= '(?:[#.][-\w]+[ ]*)'
$regexHtmlAttribute
protected
mixed
$regexHtmlAttribute
= '[a-zA-Z_:][\w:.-]*(?:\s*=\s*(?:[^"\'=<>`\s]+|"[^"]*"|\'[^\']*\'))?'
$safeLinksWhitelist
protected
mixed
$safeLinksWhitelist
= array('http://', 'https://', 'ftp://', 'ftps://', 'mailto:', 'data:image/png;base64,', 'data:image/gif;base64,', 'data:image/jpeg;base64,', 'irc:', 'ircs:', 'git:', 'ssh:', 'news:', 'steam:')
$safeMode
protected
mixed
$safeMode
$specialCharacters
protected
mixed
$specialCharacters
= array('\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|')
$StrongRegex
protected
mixed
$StrongRegex
= array('*' => '/^[*]{2}((?:\\\\\\*|[^*]|[*][^*]*[*])+?)[*]{2}(?![*])/s', '_' => '/^__((?:\\\\_|[^_]|_[^_]*_)+?)__(?!_)/us')
$textLevelElements
protected
mixed
$textLevelElements
= array('a', 'br', 'bdo', 'abbr', 'blink', 'nextid', 'acronym', 'basefont', 'b', 'em', 'big', 'cite', 'small', 'spacer', 'listing', 'i', 'rp', 'del', 'code', 'strike', 'marquee', 'q', 'rt', 'ins', 'font', 'strong', 's', 'tt', 'kbd', 'mark', 'u', 'xm', 'sub', 'nobr', 'sup', 'ruby', 'var', 'span', 'wbr', 'time')
$unmarkedBlockTypes
protected
mixed
$unmarkedBlockTypes
= array('Code')
$urlsLinked
protected
mixed
$urlsLinked
= \true
$voidElements
protected
mixed
$voidElements
= array('area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source')
$footnoteCount
private
mixed
$footnoteCount
= 0
$instances
private
static mixed
$instances
= array()
Methods
__construct()
public
__construct() : mixed
instance()
public
static instance([mixed $name = 'default' ]) : mixed
Parameters
- $name : mixed = 'default'
line()
public
line(mixed $text[, mixed $nonNestables = array() ]) : mixed
Parameters
- $text : mixed
- $nonNestables : mixed = array()
parse()
public
parse(mixed $text) : mixed
Parameters
- $text : mixed
setBreaksEnabled()
public
setBreaksEnabled(mixed $breaksEnabled) : mixed
Parameters
- $breaksEnabled : mixed
setMarkupEscaped()
public
setMarkupEscaped(mixed $markupEscaped) : mixed
Parameters
- $markupEscaped : mixed
setSafeMode()
public
setSafeMode(mixed $safeMode) : mixed
Parameters
- $safeMode : mixed
setUrlsLinked()
public
setUrlsLinked(mixed $urlsLinked) : mixed
Parameters
- $urlsLinked : mixed
text()
public
text(mixed $text) : mixed
Parameters
- $text : mixed
addDdElement()
protected
addDdElement(array<string|int, mixed> $Line, array<string|int, mixed> $Block) : mixed
Parameters
- $Line : array<string|int, mixed>
- $Block : array<string|int, mixed>
blockAbbreviation()
protected
blockAbbreviation(mixed $Line) : mixed
Parameters
- $Line : mixed
blockCode()
protected
blockCode(mixed $Line[, mixed $Block = null ]) : mixed
Parameters
- $Line : mixed
- $Block : mixed = null
blockCodeComplete()
protected
blockCodeComplete(mixed $Block) : mixed
Parameters
- $Block : mixed
blockCodeContinue()
protected
blockCodeContinue(mixed $Line, mixed $Block) : mixed
Parameters
- $Line : mixed
- $Block : mixed
blockComment()
protected
blockComment(mixed $Line) : mixed
Parameters
- $Line : mixed
blockCommentContinue()
protected
blockCommentContinue(mixed $Line, array<string|int, mixed> $Block) : mixed
Parameters
- $Line : mixed
- $Block : array<string|int, mixed>
blockDefinitionList()
protected
blockDefinitionList(mixed $Line, mixed $Block) : mixed
Parameters
- $Line : mixed
- $Block : mixed
blockDefinitionListContinue()
protected
blockDefinitionListContinue(mixed $Line, array<string|int, mixed> $Block) : mixed
Parameters
- $Line : mixed
- $Block : array<string|int, mixed>
blockFencedCode()
protected
blockFencedCode(mixed $Line) : mixed
Parameters
- $Line : mixed
blockFencedCodeComplete()
protected
blockFencedCodeComplete(mixed $Block) : mixed
Parameters
- $Block : mixed
blockFencedCodeContinue()
protected
blockFencedCodeContinue(mixed $Line, mixed $Block) : mixed
Parameters
- $Line : mixed
- $Block : mixed
blockFootnote()
protected
blockFootnote(mixed $Line) : mixed
Parameters
- $Line : mixed
blockFootnoteComplete()
protected
blockFootnoteComplete(mixed $Block) : mixed
Parameters
- $Block : mixed
blockFootnoteContinue()
protected
blockFootnoteContinue(mixed $Line, mixed $Block) : mixed
Parameters
- $Line : mixed
- $Block : mixed
blockHeader()
protected
blockHeader(mixed $Line) : mixed
Parameters
- $Line : mixed
blockList()
protected
blockList(mixed $Line) : mixed
Parameters
- $Line : mixed
blockListComplete()
protected
blockListComplete(array<string|int, mixed> $Block) : mixed
Parameters
- $Block : array<string|int, mixed>
blockListContinue()
protected
blockListContinue(mixed $Line, array<string|int, mixed> $Block) : mixed
Parameters
- $Line : mixed
- $Block : array<string|int, mixed>
blockMarkup()
protected
blockMarkup(mixed $Line) : mixed
Parameters
- $Line : mixed
blockMarkupComplete()
protected
blockMarkupComplete(mixed $Block) : mixed
Parameters
- $Block : mixed
blockMarkupContinue()
protected
blockMarkupContinue(mixed $Line, array<string|int, mixed> $Block) : mixed
Parameters
- $Line : mixed
- $Block : array<string|int, mixed>
blockQuote()
protected
blockQuote(mixed $Line) : mixed
Parameters
- $Line : mixed
blockQuoteContinue()
protected
blockQuoteContinue(mixed $Line, array<string|int, mixed> $Block) : mixed
Parameters
- $Line : mixed
- $Block : array<string|int, mixed>
blockReference()
protected
blockReference(mixed $Line) : mixed
Parameters
- $Line : mixed
blockRule()
protected
blockRule(mixed $Line) : mixed
Parameters
- $Line : mixed
blockSetextHeader()
protected
blockSetextHeader(mixed $Line[, array<string|int, mixed> $Block = null ]) : mixed
Parameters
- $Line : mixed
- $Block : array<string|int, mixed> = null
blockTable()
protected
blockTable(mixed $Line[, array<string|int, mixed> $Block = null ]) : mixed
Parameters
- $Line : mixed
- $Block : array<string|int, mixed> = null
blockTableContinue()
protected
blockTableContinue(mixed $Line, array<string|int, mixed> $Block) : mixed
Parameters
- $Line : mixed
- $Block : array<string|int, mixed>
buildFootnoteElement()
protected
buildFootnoteElement() : mixed
element()
protected
element(array<string|int, mixed> $Element) : mixed
Parameters
- $Element : array<string|int, mixed>
elements()
protected
elements(array<string|int, mixed> $Elements) : mixed
Parameters
- $Elements : array<string|int, mixed>
escape()
protected
static escape(mixed $text[, mixed $allowQuotes = false ]) : mixed
Parameters
- $text : mixed
- $allowQuotes : mixed = false
filterUnsafeUrlInAttribute()
protected
filterUnsafeUrlInAttribute(array<string|int, mixed> $Element, mixed $attribute) : mixed
Parameters
- $Element : array<string|int, mixed>
- $attribute : mixed
inlineCode()
protected
inlineCode(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineEmailTag()
protected
inlineEmailTag(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineEmphasis()
protected
inlineEmphasis(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineEscapeSequence()
protected
inlineEscapeSequence(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineFootnoteMarker()
protected
inlineFootnoteMarker(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineImage()
protected
inlineImage(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineLink()
protected
inlineLink(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineMarkup()
protected
inlineMarkup(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineSpecialCharacter()
protected
inlineSpecialCharacter(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineStrikethrough()
protected
inlineStrikethrough(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineUrl()
protected
inlineUrl(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
inlineUrlTag()
protected
inlineUrlTag(mixed $Excerpt) : mixed
Parameters
- $Excerpt : mixed
isBlockCompletable()
protected
isBlockCompletable(mixed $Type) : mixed
Parameters
- $Type : mixed
isBlockContinuable()
protected
isBlockContinuable(mixed $Type) : mixed
Parameters
- $Type : mixed
li()
protected
li(mixed $lines) : mixed
Parameters
- $lines : mixed
lines()
protected
lines(array<string|int, mixed> $lines) : mixed
Parameters
- $lines : array<string|int, mixed>
paragraph()
protected
paragraph(mixed $Line) : mixed
Parameters
- $Line : mixed
parseAttributeData()
protected
parseAttributeData(mixed $attributeString) : mixed
Parameters
- $attributeString : mixed
processTag()
protected
processTag(mixed $elementMarkup) : mixed
Parameters
- $elementMarkup : mixed
sanitiseElement()
protected
sanitiseElement(array<string|int, mixed> $Element) : mixed
Parameters
- $Element : array<string|int, mixed>
sortFootnotes()
protected
sortFootnotes(mixed $A, mixed $B) : mixed
Parameters
- $A : mixed
- $B : mixed
striAtStart()
protected
static striAtStart(mixed $string, mixed $needle) : mixed
Parameters
- $string : mixed
- $needle : mixed
unmarkedText()
protected
unmarkedText(mixed $text) : mixed
Parameters
- $text : mixed