Library
core
modules
Core Src Parser Std Rules Paragraphitem

Lawtext core references / core/src/parser/std/rules/$paragraphItem

Module: core/src/parser/std/rules/$paragraphItem

Table of contents

References

Variables

Functions

References

default

Renames and re-exports $paragraphItem

Variables

$autoParagraphItem

Const $autoParagraphItem: WithErrorRule<ParagraphItem | __AutoParagraphItem>

Defined in

core/src/parser/std/rules/$paragraphItem.ts:506 (opens in a new tab)


$autoParagraphItemChildrenOuter

Const $autoParagraphItemChildrenOuter: WithErrorRule<(ParagraphItem["children"][number] | __AutoParagraphItem)[]>

Defined in

core/src/parser/std/rules/$paragraphItem.ts:356 (opens in a new tab)


$noControlAnonymParagraph

Const $noControlAnonymParagraph: WithErrorRule<Paragraph>

Defined in

core/src/parser/std/rules/$paragraphItem.ts:656 (opens in a new tab)


$requireControlParagraphItem

Const $requireControlParagraphItem: WithErrorRule<ParagraphItem>

Defined in

core/src/parser/std/rules/$paragraphItem.ts:619 (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

NameType
defautTag"Paragraph" | "Item" | "Subitem1" | "Subitem2" | "Subitem3" | "Subitem4" | "Subitem5" | "Subitem6" | "Subitem7" | "Subitem8" | "Subitem9" | "Subitem10"

Returns

WithErrorRule<ParagraphItem>

Defined in

core/src/parser/std/rules/$paragraphItem.ts:646 (opens in a new tab)


isAutoParagraphItem

isAutoParagraphItem(el): el is __AutoParagraphItem

Parameters

NameType
elstring | EL

Returns

el is __AutoParagraphItem

Defined in

core/src/parser/std/rules/$paragraphItem.ts:444 (opens in a new tab)


isAutoParagraphItemSentence

isAutoParagraphItemSentence(el): el is __AutoParagraphItem

Parameters

NameType
elstring | EL

Returns

el is __AutoParagraphItem

Defined in

core/src/parser/std/rules/$paragraphItem.ts:452 (opens in a new tab)


isAutoParagraphItemTitle

isAutoParagraphItemTitle(el): el is __AutoParagraphItem

Parameters

NameType
elstring | EL

Returns

el is __AutoParagraphItem

Defined in

core/src/parser/std/rules/$paragraphItem.ts:448 (opens in a new tab)


paragraphItemFromAuto

paragraphItemFromAuto(defautTag, paragraphItem): ParagraphItem

Parameters

NameType
defautTag"Paragraph" | "Item" | "Subitem1" | "Subitem2" | "Subitem3" | "Subitem4" | "Subitem5" | "Subitem6" | "Subitem7" | "Subitem8" | "Subitem9" | "Subitem10"
paragraphItemParagraphItem | __AutoParagraphItem

Returns

ParagraphItem

Defined in

core/src/parser/std/rules/$paragraphItem.ts:455 (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

NameType
elParagraphItem
indentTextsstring[]
options?ParagraphItemToLinesOptions

Returns

Line[]

Defined in

core/src/parser/std/rules/$paragraphItem.ts:40 (opens in a new tab)