Lawtext core references / core/src/parser/std/rules/$toc
Module: core/src/parser/std/rules/$toc
Table of contents
References
Variables
Functions
References
default
Renames and re-exports $toc
Variables
$toc
• Const
$toc: WithErrorRule
<TOC
>
The parser rule for std.TOC. Please see the source code for the detailed syntax, and the test code (opens in a new tab) for examples.
Defined in
core/src/parser/std/rules/$toc.ts:480 (opens in a new tab)
$tocArticle
• Const
$tocArticle: WithErrorRule
<TOCArticle
>
Defined in
core/src/parser/std/rules/$toc.ts:294 (opens in a new tab)
$tocArticleGroup
• Const
$tocArticleGroup: WithErrorRule
<TOCArticleGroup
>
Defined in
core/src/parser/std/rules/$toc.ts:211 (opens in a new tab)
$tocPreambleLabel
• Const
$tocPreambleLabel: WithErrorRule
<TOCPreambleLabel
>
Defined in
core/src/parser/std/rules/$toc.ts:170 (opens in a new tab)
$tocSupplProvision
• Const
$tocSupplProvision: WithErrorRule
<TOCSupplProvision
>
Defined in
core/src/parser/std/rules/$toc.ts:364 (opens in a new tab)
Functions
tocItemToLines
▸ tocItemToLines(el
, indentTexts
): Line
[]
The renderer for std.TOC. Please see the source code for the detailed syntax, and the test code (opens in a new tab) for examples.
Parameters
Name | Type |
---|---|
el | TOCItem |
indentTexts | string [] |
Returns
Line
[]
Defined in
core/src/parser/std/rules/$toc.ts:21 (opens in a new tab)
tocToLines
▸ tocToLines(el
, indentTexts
): Line
[]
Parameters
Name | Type |
---|---|
el | TOC |
indentTexts | string [] |
Returns
Line
[]