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 : boolean

Type

boolean

$_line

$_line : boolean

Type

boolean

$blockParsers

$blockParsers : array

Type

array

$_definitions

$_definitions : array

_definitions

Type

array

$_blocks

$_blocks : array

_blocks

Type

array

$_current

$_current : string

_current

Type

string

$_pos

$_pos : integer

_pos

Type

integer

$_hooks

$_hooks : array

Type

array

$_holders

$_holders : array

Type

array

$_uniqid

$_uniqid : string

Type

string

$_id

$_id : integer

Type

integer

$_parsers

$_parsers : array

Type

array

Methods

makeHtml()

makeHtml(mixed  $text) : string

makeHtml

Parameters

mixed $text

Returns

string

enableHtml()

enableHtml(  $html = true) 

Parameters

$html

enableLine()

enableLine(boolean  $line = true) 

Parameters

boolean $line

hook()

hook(  $type,   $callback) 

Parameters

$type
$callback

makeHolder()

makeHolder(  $str) : string

Parameters

$str

Returns

string

markLine()

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

Parameters

$start
integer $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 = '', boolean  $clearHolders = true, boolean  $enableAutoLink = true) : string

parseInline

Parameters

string $text
string $whiteList
boolean $clearHolders
boolean $enableAutoLink

Returns

string

parseInlineCallback()

parseInlineCallback(  $text) : mixed

Parameters

$text

Returns

mixed

cleanUrl()

cleanUrl(  $url) : string

Parameters

$url

Returns

string

escapeBracket()

escapeBracket(  $str) : mixed

Parameters

$str

Returns

mixed

initText()

initText(  $text) : mixed

Parameters

$text

Returns

mixed

makeFootnotes()

makeFootnotes(  $html) : string

Parameters

$html

Returns

string

parse()

parse(string  $text, boolean  $inline = false, integer  $offset) : string

parse

Parameters

string $text
boolean $inline
integer $offset

Returns

string

releaseHolder()

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

Parameters

$text
$clearHolders

Returns

string

parseBlock()

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

parseBlock

Parameters

string $text
array $lines

Returns

array

parseBlockList()

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

Parameters

$block
$key
$line
$state

Returns

boolean

parseBlockCode()

parseBlockCode(  $block,   $key,   $line) : boolean

Parameters

$block
$key
$line

Returns

boolean

parseBlockShtml()

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

Parameters

$block
$key
$line
$state

Returns

boolean

parseBlockAhtml()

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

Parameters

$block
$key
$line
$state

Returns

boolean

parseBlockMath()

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

Parameters

$block
$key
$line

Returns

boolean

parseBlockPre()

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

Parameters

$block
$key
$line
$state

Returns

boolean

parseBlockHtml()

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

Parameters

$block
$key
$line
$state

Returns

boolean

parseBlockFootnote()

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

Parameters

$block
$key
$line

Returns

boolean

parseBlockDefinition()

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

Parameters

$block
$key
$line

Returns

boolean

parseBlockQuote()

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

Parameters

$block
$key
$line

Returns

boolean

parseBlockTable()

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

Parameters

$block
$key
$line
$state
$lines

Returns

boolean

parseBlockSh()

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

Parameters

$block
$key
$line

Returns

boolean

parseBlockMh()

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

Parameters

$block
$key
$line
$state
$lines

Returns

boolean

parseBlockHr()

parseBlockHr(  $block,   $key,   $line) : boolean

Parameters

$block
$key
$line

Returns

boolean

parseBlockDefault()

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

Parameters

$block
$key
$line
$state

Returns

boolean

optimizeBlocks()

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

Parameters

array $blocks
array $lines

Returns

array

parseCode()

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

parseCode

Parameters

array $lines
array $parts
integer $start

Returns

string

parsePre()

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

parsePre

Parameters

array $lines
mixed $value
integer $start

Returns

string

parseAhtml()

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

parseAhtml

Parameters

array $lines
mixed $value
integer $start

Returns

string

parseShtml()

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

parseShtml

Parameters

array $lines
mixed $value
integer $start

Returns

string

parseMath()

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

parseMath

Parameters

array $lines
mixed $value
integer $start
integer $end

Returns

string

parseSh()

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

parseSh

Parameters

array $lines
integer $num
integer $start
integer $end

Returns

string

parseMh()

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

parseMh

Parameters

array $lines
integer $num
integer $start
integer $end

Returns

string

parseQuote()

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

parseQuote

Parameters

array $lines
mixed $value
integer $start

Returns

string

parseList()

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

parseList

Parameters

array $lines
mixed $value
integer $start

Returns

string

parseTable()

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

Parameters

array $lines
array $value
integer $start

Returns

string

parseHr()

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

parseHr

Parameters

array $lines
array $value
integer $start

Returns

string

parseNormal()

parseNormal(array  $lines, boolean  $inline = false, integer  $start) : string

parseNormal

Parameters

array $lines
boolean $inline
integer $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, integer  $start) : string

parseHtml

Parameters

array $lines
string $type
integer $start

Returns

string

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) : boolean

isBlock

Parameters

mixed $type
mixed $value

Returns

boolean

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