Properties

$_commonWhiteList

$_commonWhiteList : string

_whiteList

Type

string

$_blockHtmlTags

$_blockHtmlTags : string

html tags

Type

string

$_specialWhiteList

$_specialWhiteList : mixed

_specialWhiteList

Type

mixed

$_footnotes

$_footnotes : array

_footnotes

Type

array

$_html

$_html : bool

Type

bool

$_line

$_line : bool

Type

bool

$blockParsers

$blockParsers : array

Type

array

$_blocks

$_blocks : array

_blocks

Type

array

$_current

$_current : string

_current

Type

string

$_pos

$_pos : int

_pos

Type

int

$_definitions

$_definitions : array

_definitions

Type

array

$_hooks

$_hooks : array

Type

array

$_holders

$_holders : array

Type

array

$_uniqid

$_uniqid : string

Type

string

$_id

$_id : int

Type

int

$_parsers

$_parsers : array

Type

array

Methods

makeHtml()

makeHtml(mixed  $text) : string

makeHtml

Parameters

mixed $text

Returns

string —

enableHtml()

enableHtml( $html = true) : mixed

Parameters

$html

Returns

mixed —

enableLine()

enableLine(bool  $line = true) : mixed

Parameters

bool $line

Returns

mixed —

hook()

hook( $type,  $callback) : mixed

Parameters

$type
$callback

Returns

mixed —

makeHolder()

makeHolder( $str) : string

Parameters

$str

Returns

string —

initText()

initText( $text) : mixed

Parameters

$text

Returns

mixed —

makeFootnotes()

makeFootnotes( $html) : string

Parameters

$html

Returns

string —

parse()

parse(string  $text, bool  $inline = false, int  $offset) : string

parse

Parameters

string $text
bool $inline
int $offset

Returns

string —

releaseHolder()

releaseHolder( $text,  $clearHolders = true) : string

Parameters

$text
$clearHolders

Returns

string —

markLine()

markLine( $start, int  $end = -1) : string

Parameters

$start
int $end

Returns

string —

markLines()

markLines(array  $lines,  $start) : string[]

Parameters

array $lines
$start

Returns

string[] —

optimizeLines()

optimizeLines( $html) : string

Parameters

$html

Returns

string —

call()

call( $type,  $value) : mixed

Parameters

$type
$value

Returns

mixed —

parseInline()

parseInline(string  $text, string  $whiteList = '', bool  $clearHolders = true, bool  $enableAutoLink = true) : string

parseInline

Parameters

string $text
string $whiteList
bool $clearHolders
bool $enableAutoLink

Returns

string —

parseInlineCallback()

parseInlineCallback( $text) : mixed

Parameters

$text

Returns

mixed —

parseBlock()

parseBlock(string  $text, array  $lines) : array

parseBlock

Parameters

string $text
array $lines

Returns

array —

parseBlockList()

parseBlockList( $block,  $key,  $line,  $state) : bool

Parameters

$block
$key
$line
$state

Returns

bool —

parseBlockCode()

parseBlockCode( $block,  $key,  $line,  $state) : bool

Parameters

$block
$key
$line
$state

Returns

bool —

parseBlockShtml()

parseBlockShtml( $block,  $key,  $line,  $state) : bool

Parameters

$block
$key
$line
$state

Returns

bool —

parseBlockAhtml()

parseBlockAhtml( $block,  $key,  $line,  $state) : bool

Parameters

$block
$key
$line
$state

Returns

bool —

parseBlockMath()

parseBlockMath( $block,  $key,  $line) : bool

Parameters

$block
$key
$line

Returns

bool —

parseBlockPre()

parseBlockPre( $block,  $key,  $line,  $state) : bool

Parameters

$block
$key
$line
$state

Returns

bool —

parseBlockHtml()

parseBlockHtml( $block,  $key,  $line,  $state) : bool

Parameters

$block
$key
$line
$state

Returns

bool —

parseBlockFootnote()

parseBlockFootnote( $block,  $key,  $line) : bool

Parameters

$block
$key
$line

Returns

bool —

parseBlockDefinition()

parseBlockDefinition( $block,  $key,  $line) : bool

Parameters

$block
$key
$line

Returns

bool —

parseBlockQuote()

parseBlockQuote( $block,  $key,  $line) : bool

Parameters

$block
$key
$line

Returns

bool —

parseBlockTable()

parseBlockTable( $block,  $key,  $line,  $state,  $lines) : bool

Parameters

$block
$key
$line
$state
$lines

Returns

bool —

parseBlockSh()

parseBlockSh( $block,  $key,  $line) : bool

Parameters

$block
$key
$line

Returns

bool —

parseBlockMh()

parseBlockMh( $block,  $key,  $line,  $state,  $lines) : bool

Parameters

$block
$key
$line
$state
$lines

Returns

bool —

parseBlockShr()

parseBlockShr( $block,  $key,  $line) : bool

Parameters

$block
$key
$line

Returns

bool —

parseBlockDhr()

parseBlockDhr( $block,  $key,  $line) : bool

Parameters

$block
$key
$line

Returns

bool —

parseBlockDefault()

parseBlockDefault( $block,  $key,  $line,  $state) : bool

Parameters

$block
$key
$line
$state

Returns

bool —

optimizeBlocks()

optimizeBlocks(array  $blocks, array  $lines) : array

Parameters

array $blocks
array $lines

Returns

array —

parseCode()

parseCode(array  $lines, array  $parts, int  $start) : string

parseCode

Parameters

array $lines
array $parts
int $start

Returns

string —

parsePre()

parsePre(array  $lines, mixed  $value, int  $start) : string

parsePre

Parameters

array $lines
mixed $value
int $start

Returns

string —

parseAhtml()

parseAhtml(array  $lines, mixed  $value, int  $start) : string

parseAhtml

Parameters

array $lines
mixed $value
int $start

Returns

string —

parseShtml()

parseShtml(array  $lines, mixed  $value, int  $start) : string

parseShtml

Parameters

array $lines
mixed $value
int $start

Returns

string —

parseMath()

parseMath(array  $lines, mixed  $value, int  $start, int  $end) : string

parseMath

Parameters

array $lines
mixed $value
int $start
int $end

Returns

string —

parseSh()

parseSh(array  $lines, int  $num, int  $start, int  $end) : string

parseSh

Parameters

array $lines
int $num
int $start
int $end

Returns

string —

parseMh()

parseMh(array  $lines, int  $num, int  $start, int  $end) : string

parseMh

Parameters

array $lines
int $num
int $start
int $end

Returns

string —

parseQuote()

parseQuote(array  $lines, mixed  $value, int  $start) : string

parseQuote

Parameters

array $lines
mixed $value
int $start

Returns

string —

parseList()

parseList(array  $lines, mixed  $value, int  $start) : string

parseList

Parameters

array $lines
mixed $value
int $start

Returns

string —

parseTable()

parseTable(array  $lines, array  $value, int  $start) : string

Parameters

array $lines
array $value
int $start

Returns

string —

parseHr()

parseHr(array  $lines, array  $value, int  $start) : string

parseHr

Parameters

array $lines
array $value
int $start

Returns

string —

parseNormal()

parseNormal(array  $lines, bool  $inline, int  $start) : string

parseNormal

Parameters

array $lines
bool $inline
int $start

Returns

string —

parseFootnote()

parseFootnote(array  $lines, array  $value) : string

parseFootnote

Parameters

array $lines
array $value

Returns

string —

parseDefinition()

parseDefinition() : string

parseDefine

Returns

string —

parseHtml()

parseHtml(array  $lines, string  $type, int  $start) : string

parseHtml

Parameters

array $lines
string $type
int $start

Returns

string —

cleanUrl()

cleanUrl( $url, bool  $parseTitle = false) : mixed

Parameters

$url
bool $parseTitle

Returns

mixed —

escapeBracket()

escapeBracket( $str) : mixed

Parameters

$str

Returns

mixed —

startBlock()

startBlock(mixed  $type, mixed  $start, mixed  $value = null) : $this

startBlock

Parameters

mixed $type
mixed $start
mixed $value

Returns

$this —

endBlock()

endBlock() : $this

endBlock

Returns

$this —

isBlock()

isBlock(mixed  $type, mixed  $value = null) : bool

isBlock

Parameters

mixed $type
mixed $value

Returns

bool —

getBlock()

getBlock() : array

getBlock

Returns

array —

setBlock()

setBlock(mixed  $to = null, mixed  $value = null) : $this

setBlock

Parameters

mixed $to
mixed $value

Returns

$this —

backBlock()

backBlock(mixed  $step, mixed  $type, mixed  $value = null) : $this

backBlock

Parameters

mixed $step
mixed $type
mixed $value

Returns

$this —

combineBlock()

combineBlock() : $this

Returns

$this —