final class HeadingModule extends Module

Heading module.

Constants

DYNAMIC

FIXED

Properties

$title

textual content of first heading

$TOC
$generateID
$idPrefix

prefix for autogenerated ID

$top

level of top heading, 1..6

$moreMeansHigher

surrounded headings: more #### means higher heading

$balancing

balancing mode

array<string,int> $levels

Methods

__construct(Texy $texy)

No description

void
beforeParse()

No description

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

No description

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

Callback for underlined heading.

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

Callback for surrounded heading.

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

Finish invocation.

Details

at line 57
__construct(Texy $texy)

No description

Parameters

Texy $texy

at line 80
void beforeParse()

No description

Return Value

void

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

No description

Parameters

Texy $texy
HtmlElement $DOM
bool $isSingleLine

Return Value

void

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

Callback for underlined heading.

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

Parameters

BlockParser $parser
array $matches

Return Value

HtmlElement|string|null

at line 189
HtmlElement|string|null patternSurround(BlockParser $parser, array $matches)

Callback for surrounded heading.

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

Parameters

BlockParser $parser
array $matches

Return Value

HtmlElement|string|null

at line 207
HtmlElement solve(HandlerInvocation $invocation, int $level, string $content, Modifier $mod, bool $isSurrounded)

Finish invocation.

Parameters

HandlerInvocation $invocation
int $level
string $content
Modifier $mod
bool $isSurrounded

Return Value

HtmlElement