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 $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 58
__construct(Texy $texy)

No description

Parameters

Texy $texy

at line 81
void beforeParse()

No description

Return Value

void

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

No description

Parameters

Texy $texy
HtmlElement $DOM
bool $isSingleLine

Return Value

void

at line 169
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