final class HeadingModule extends Module

Heading module.

Constants

DYNAMIC

FIXED

Properties

string|null $title
array $TOC
bool $generateID
string $idPrefix
int $top
bool $moreMeansHigher
int $balancing
array $levels

Methods

__construct($texy)

No description

beforeParse()

No description

void
afterParse(Texy $texy, HtmlElement $DOM, $isSingleLine)

No description

HtmlElement|string|false
patternUnderline(BlockParser $parser, array $matches)

Callback for underlined heading.

HtmlElement|string|false
patternSurround(BlockParser $parser, array $matches)

Callback for surrounded heading.

solve(HandlerInvocation $invocation, $level, $content, Modifier $mod, $isSurrounded)

Finish invocation.

Details

at line 56
__construct($texy)

No description

Parameters

$texy

at line 79
beforeParse()

No description

at line 90
void afterParse(Texy $texy, HtmlElement $DOM, $isSingleLine)

No description

Parameters

Texy $texy
HtmlElement $DOM
$isSingleLine

Return Value

void

at line 170
HtmlElement|string|false patternUnderline(BlockParser $parser, array $matches)

Callback for underlined heading.

Heading .(title)[class]{style}>

Parameters

BlockParser $parser
array $matches

Return Value

HtmlElement|string|false

at line 190
HtmlElement|string|false patternSurround(BlockParser $parser, array $matches)

Callback for surrounded heading.

Heading .(title)[class]{style}>

Parameters

BlockParser $parser
array $matches

Return Value

HtmlElement|string|false

at line 209
HtmlElement solve(HandlerInvocation $invocation, $level, $content, Modifier $mod, $isSurrounded)

Finish invocation.

Parameters

HandlerInvocation $invocation
$level
$content
Modifier $mod
$isSurrounded

Return Value

HtmlElement