Lawtext core references • Docs
Lawtext core references / core/src/parser/std/rules/$paragraphItem
core/src/parser/std/rules/$paragraphItem
References
default
Renames and re-exports $paragraphItem
Variables
$autoParagraphItem
const
$autoParagraphItem:WithErrorRule
<ParagraphItem
|__AutoParagraphItem
>
Defined in
core/src/parser/std/rules/$paragraphItem.ts:512 (opens in a new tab)
$autoParagraphItemChildrenOuter
const
$autoParagraphItemChildrenOuter:WithErrorRule
<(ParagraphItem
["children"
][number
] |__AutoParagraphItem
)[]>
Defined in
core/src/parser/std/rules/$paragraphItem.ts:362 (opens in a new tab)
$noControlAnonymParagraph
const
$noControlAnonymParagraph:WithErrorRule
<Paragraph
>
Defined in
core/src/parser/std/rules/$paragraphItem.ts:662 (opens in a new tab)
$requireControlParagraphItem
const
$requireControlParagraphItem:WithErrorRule
<ParagraphItem
>
Defined in
core/src/parser/std/rules/$paragraphItem.ts:625 (opens in a new tab)
Functions
$paragraphItem()
$paragraphItem(
defautTag
):WithErrorRule
<ParagraphItem
>
The parser rule for Paragraph, Item and subitem (ParagraphItem). Please see the source code for the detailed syntax, and the test code (opens in a new tab) for examples.
Parameters
• defautTag: "Paragraph"
| "Item"
| "Subitem1"
| "Subitem2"
| "Subitem3"
| "Subitem4"
| "Subitem5"
| "Subitem6"
| "Subitem7"
| "Subitem8"
| "Subitem9"
| "Subitem10"
Returns
Defined in
core/src/parser/std/rules/$paragraphItem.ts:652 (opens in a new tab)
isAutoParagraphItem()
isAutoParagraphItem(
el
):el is __AutoParagraphItem
Parameters
• el: string
| EL
Returns
el is __AutoParagraphItem
Defined in
core/src/parser/std/rules/$paragraphItem.ts:450 (opens in a new tab)
isAutoParagraphItemSentence()
isAutoParagraphItemSentence(
el
):el is __AutoParagraphItem
Parameters
• el: string
| EL
Returns
el is __AutoParagraphItem
Defined in
core/src/parser/std/rules/$paragraphItem.ts:458 (opens in a new tab)
isAutoParagraphItemTitle()
isAutoParagraphItemTitle(
el
):el is __AutoParagraphItem
Parameters
• el: string
| EL
Returns
el is __AutoParagraphItem
Defined in
core/src/parser/std/rules/$paragraphItem.ts:454 (opens in a new tab)
paragraphItemFromAuto()
paragraphItemFromAuto(
defautTag
,paragraphItem
):ParagraphItem
Parameters
• defautTag: "Paragraph"
| "Item"
| "Subitem1"
| "Subitem2"
| "Subitem3"
| "Subitem4"
| "Subitem5"
| "Subitem6"
| "Subitem7"
| "Subitem8"
| "Subitem9"
| "Subitem10"
• paragraphItem: ParagraphItem
| __AutoParagraphItem
Returns
Defined in
core/src/parser/std/rules/$paragraphItem.ts:461 (opens in a new tab)
paragraphItemToLines()
paragraphItemToLines(
el
,indentTexts
,options
?):Line
[]
The renderer for Paragraph, Item and subitem (ParagraphItem). Please see the source code for the detailed syntax, and the test code (opens in a new tab) for examples.
Parameters
• el: ParagraphItem
• indentTexts: string
[]
• options?: ParagraphItemToLinesOptions
Returns
Line
[]
Defined in
core/src/parser/std/rules/$paragraphItem.ts:46 (opens in a new tab)