PHP Класс Markdownify\ConverterExtra

Наследование: extends Converter
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$col integer current col
$row integer current row
$table array table data, including rows with content and the maximum width of each col

Открытые методы

Метод Описание
__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

Защищенные методы

tags
Метод Описание
_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

Описание методов

__construct() публичный Метод

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

_makeFootnotes() защищенный Метод

replace HTML representation of footnotes with something more easily parsable
protected _makeFootnotes ( array $matches ) : string
$matches array
Результат string

alignTdContent() защищенный Метод

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
Результат void

flushStacked_abbr() защищенный Метод

flush stacked abbr tags
protected flushStacked_abbr ( ) : void
Результат void
handle header tags (

-

)
protected handleHeader ( integer $level ) : void
$level integer 1-6
Результат void

handleTag_dd() защищенный Метод

handle
tags
protected handleTag_dd ( ) : void
Результат void

handleTag_dl() защищенный Метод

handle
tags
protected handleTag_dl ( ) : void
Результат void

handleTag_dt() защищенный Метод

handle
tags
protected handleTag_dt ( ) : void
Результат void

handleTag_fn() защищенный Метод

handle tags (custom footnotes, see markdownify_extra::parseString() and markdownify_extra::_makeFootnotes())
protected handleTag_fn ( ) : void
Результат void

handleTag_fnref() защищенный Метод

handle tags (custom footnote references, see markdownify_extra::parseString())
protected handleTag_fnref ( ) : void
Результат void

handleTag_footnotes() защищенный Метод

handle tag (custom footnotes, see markdownify_extra::parseString() and markdownify_extra::_makeFootnotes())
protected handleTag_footnotes ( ) : void
Результат void

handleTag_table() защищенный Метод

handle tags
protected handleTag_table ( ) : void
Результат void

handleTag_td() защищенный Метод

handle
tags
protected handleTag_td ( ) : void
Результат void

handleTag_th() защищенный Метод

handle
tags
protected handleTag_th ( ) : void
Результат void

handleTag_tr() защищенный Метод

handle
protected handleTag_tr ( ) : void
Результат void

parseString() публичный Метод

parse a HTML string, clean up footnotes prior
public parseString ( $html ) : string
Результат string Markdown formatted output

Описание свойств

$col защищенное свойство

current col
protected int $col
Результат integer

$row защищенное свойство

current row
protected int $row
Результат integer

$table защищенное свойство

table data, including rows with content and the maximum width of each col
protected array $table
Результат array