PHP Class Markdownify\ConverterExtra

Inheritance: extends Converter
Show file Open project: pixel418/markdownify

Protected Properties

Property Type Description
$col integer current col
$row integer current row
$table array table data, including rows with content and the maximum width of each col

Public Methods

Method Description
__construct ( $linksAfterEachParagraph = self::LINK_AFTER_CONTENT, $bodyWidth = MDFY_BODYWIDTH, $keepHTML = MDFY_KEEPHTML ) constructor, see Markdownify::Markdownify() for more information
parseString ( $html ) : string parse a HTML string, clean up footnotes prior

Protected Methods

tags
Method Description
_makeFootnotes ( array $matches ) : string replace HTML representation of footnotes with something more easily parsable
alignTdContent ( &$content, integer $col ) : void properly pad content so it is aligned as whished should be used with array_walk_recursive on $this->table['rows']
flushStacked_abbr ( ) : void flush stacked abbr tags
getCurrentCssSelector ( ) : void handle tags parsing
handleHeader ( integer $level ) : void handle header tags (

-

)
handleTag_a_converter ( array $tag, string $buffer ) : string handle tags conversion
handleTag_a_parser ( ) : void handle tags parsing
handleTag_abbr ( ) : void handle tags
handleTag_dd ( ) : void handle
tags
handleTag_dl ( ) : void handle
tags
handleTag_dt ( ) : void handle
tags
handleTag_fn ( ) : void handle tags (custom footnotes, see markdownify_extra::parseString() and markdownify_extra::_makeFootnotes())
handleTag_fnref ( ) : void handle tags (custom footnote references, see markdownify_extra::parseString())
handleTag_footnotes ( ) : void handle tag (custom footnotes, see markdownify_extra::parseString() and markdownify_extra::_makeFootnotes())
handleTag_table ( ) : void handle tags tags
handleTag_td ( ) : void handle tags
handleTag_th ( ) : void handle tags
handleTag_tr ( ) : void handle

Method Details

__construct() public method

constructor, see Markdownify::Markdownify() for more information
public __construct ( $linksAfterEachParagraph = self::LINK_AFTER_CONTENT, $bodyWidth = MDFY_BODYWIDTH, $keepHTML = MDFY_KEEPHTML )

_makeFootnotes() protected method

replace HTML representation of footnotes with something more easily parsable
protected _makeFootnotes ( array $matches ) : string
$matches array
return string

alignTdContent() protected method

properly pad content so it is aligned as whished should be used with array_walk_recursive on $this->table['rows']
protected alignTdContent ( &$content, integer $col ) : void
$col integer
return void

flushStacked_abbr() protected method

flush stacked abbr tags
protected flushStacked_abbr ( ) : void
return void
handle header tags (

-

)
protected handleHeader ( integer $level ) : void
$level integer 1-6
return void

handleTag_dd() protected method

handle
tags
protected handleTag_dd ( ) : void
return void

handleTag_dl() protected method

handle
tags
protected handleTag_dl ( ) : void
return void

handleTag_dt() protected method

handle
tags
protected handleTag_dt ( ) : void
return void

handleTag_fn() protected method

handle tags (custom footnotes, see markdownify_extra::parseString() and markdownify_extra::_makeFootnotes())
protected handleTag_fn ( ) : void
return void

handleTag_fnref() protected method

handle tags (custom footnote references, see markdownify_extra::parseString())
protected handleTag_fnref ( ) : void
return void

handleTag_footnotes() protected method

handle tag (custom footnotes, see markdownify_extra::parseString() and markdownify_extra::_makeFootnotes())
protected handleTag_footnotes ( ) : void
return void

handleTag_table() protected method

handle tags
protected handleTag_table ( ) : void
return void

handleTag_td() protected method

handle
tags
protected handleTag_td ( ) : void
return void

handleTag_th() protected method

handle
tags
protected handleTag_th ( ) : void
return void

handleTag_tr() protected method

handle
protected handleTag_tr ( ) : void
return void

parseString() public method

parse a HTML string, clean up footnotes prior
public parseString ( $html ) : string
return string Markdown formatted output

Property Details

$col protected property

current col
protected int $col
return integer

$row protected property

current row
protected int $row
return integer

$table protected property

table data, including rows with content and the maximum width of each col
protected array $table
return array